mirror of
https://github.com/antebudimir/tempus.git
synced 2026-04-16 08:47:24 +00:00
feat: added setting to disable github check and completely disable/hide when using the degoogled version
This commit is contained in:
parent
2c6287405e
commit
6124ec66f3
6 changed files with 34 additions and 4 deletions
|
|
@ -438,7 +438,7 @@ public class MainActivity extends BaseActivity {
|
|||
}
|
||||
|
||||
private void checkTempoUpdate() {
|
||||
if (BuildConfig.FLAVOR.equals("tempus") && Preferences.showTempoUpdateDialog()) {
|
||||
if (BuildConfig.FLAVOR.equals("tempus") && Preferences.isGithubUpdateEnabled() && Preferences.showTempusUpdateDialog()) {
|
||||
mainViewModel.checkTempoUpdate().observe(this, latestRelease -> {
|
||||
if (latestRelease != null && UpdateUtil.showUpdateDialog(latestRelease)) {
|
||||
GithubTempoUpdateDialog dialog = new GithubTempoUpdateDialog(latestRelease);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue