Skip to content

Commit

Permalink
disable update check
Browse files Browse the repository at this point in the history
  • Loading branch information
yuliskov committed Nov 14, 2020
1 parent 6103652 commit 35e2f36
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ private void showUpdateDialog(String versionName, List<String> changelog, String
SplashPresenter.instance(mContext).saveBackupData();
mUpdateInstalled = true;
}, false));
mSettingsPresenter.appendSingleSwitch(UiOptionItem.from(mContext.getString(R.string.disable_update_check), optionItem -> {
mUpdateChecker.disableUpdateCheck(optionItem.isSelected());
}, mUpdateChecker.isUpdateCheckDisabled()));

mSettingsPresenter.showDialog(String.format("%s %s", mContext.getString(R.string.app_name), versionName), this::unhold);
}
Expand Down
1 change: 1 addition & 0 deletions common/src/main/res/values-ru/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,5 @@
<string name="color_scheme_red_grey">Красно-серая</string>
<string name="color_scheme_red">Красная</string>
<string name="color_scheme_dark">Тёмная</string>
<string name="disable_update_check">Не проверять обновления</string>
</resources>
1 change: 1 addition & 0 deletions common/src/main/res/values-uk/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,5 @@
<string name="color_scheme_red_grey">Червоно-сіра</string>
<string name="color_scheme_red">Червона</string>
<string name="color_scheme_dark">Темна</string>
<string name="disable_update_check">Не перевіряти оновлення</string>
</resources>
1 change: 1 addition & 0 deletions common/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,5 @@
<string name="color_scheme_red_grey">Red-grey</string>
<string name="color_scheme_red">Red</string>
<string name="color_scheme_dark">Dark</string>
<string name="disable_update_check">Disable update check</string>
</resources>

0 comments on commit 35e2f36

Please sign in to comment.