Skip to content
This repository has been archived by the owner on Sep 15, 2023. It is now read-only.

Commit

Permalink
update infobox for android < 2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ubhaller committed Aug 2, 2021
1 parent f754006 commit 55bee1d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class WalletConfigController {

private static final Version FORCE_UPDATE_BELOW_1_2_0 = new Version("1.2.0");
private static final Version DEACTIVATE_PDF_BELOW_2_2_0 = new Version("2.2.0");
private static final Version UPDATE_INFO_BOX_ANDROID_BELOW_2_0_0 = new Version("2.0.0");
private static final Version UPDATE_INFO_BOX_ANDROID_BELOW_2_2_0 = new Version("2.2.0");

private static final long ANDROID_TRANSFER_CHECK_INTERVAL_MS = 2 * 60 * 60 * 1000l;
private static final long ANDROID_TRANSFER_CHECK_BACKOFF_MS = 30 * 1000l;
Expand Down Expand Up @@ -102,7 +102,7 @@ public WalletConfigController(
configResponse.setForceUpdate(true);
}

if (clientAppVersion.isSmallerVersionThan(UPDATE_INFO_BOX_ANDROID_BELOW_2_0_0)
if (clientAppVersion.isSmallerVersionThan(UPDATE_INFO_BOX_ANDROID_BELOW_2_2_0)
&& clientAppVersion.isAndroid()
&& !configResponse.isForceUpdate()) {
configResponse.setInfoBox(infoBoxHelper.getUpdateInfoBox(clientAppVersion.isAndroid()));
Expand Down

0 comments on commit 55bee1d

Please sign in to comment.