From 46f1cae0cb2dcf9d889c600419401b848f07ce23 Mon Sep 17 00:00:00 2001 From: victor Date: Wed, 12 Aug 2020 11:49:49 +0200 Subject: [PATCH] fix: [ANDROSDK-1217] Version manager: check version before evaluation --- .../systeminfo/internal/DHISVersionManagerImpl.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/src/main/java/org/hisp/dhis/android/core/systeminfo/internal/DHISVersionManagerImpl.java b/core/src/main/java/org/hisp/dhis/android/core/systeminfo/internal/DHISVersionManagerImpl.java index 0a16c0653b..8ecebc11c4 100644 --- a/core/src/main/java/org/hisp/dhis/android/core/systeminfo/internal/DHISVersionManagerImpl.java +++ b/core/src/main/java/org/hisp/dhis/android/core/systeminfo/internal/DHISVersionManagerImpl.java @@ -88,32 +88,32 @@ public SMSVersion getSmsVersion() { @Override public boolean is2_29() { - return version == DHISVersion.V2_29; + return getVersion() == DHISVersion.V2_29; } @Override public boolean is2_30() { - return version == DHISVersion.V2_30; + return getVersion() == DHISVersion.V2_30; } @Override public boolean is2_31() { - return version == DHISVersion.V2_31; + return getVersion() == DHISVersion.V2_31; } @Override public boolean is2_32() { - return version == DHISVersion.V2_32; + return getVersion() == DHISVersion.V2_32; } @Override public boolean is2_33() { - return version == DHISVersion.V2_33; + return getVersion() == DHISVersion.V2_33; } @Override public boolean is2_34() { - return version == DHISVersion.V2_34; + return getVersion() == DHISVersion.V2_34; } @Override