Fix play in internal updater
This commit is contained in:
parent
1cc03ad060
commit
160d644695
@ -3597,7 +3597,7 @@ public class DialogsActivity extends BaseFragment implements NotificationCenter.
|
||||
|
||||
PrivacyUtil.postCheckAll(getParentActivity(), currentAccount);
|
||||
UpdateUtil.postCheckFollowChannel(getParentActivity(), currentAccount);
|
||||
if (!BuildVars.isFdroid && NekoXConfig.autoUpdateReleaseChannel != 0 && System.currentTimeMillis() / 1000 > NekoXConfig.nextUpdateCheck)
|
||||
if (!BuildVars.isFdroid && !BuildVars.isPlay && NekoXConfig.autoUpdateReleaseChannel != 0 && System.currentTimeMillis() / 1000 > NekoXConfig.nextUpdateCheck)
|
||||
UIUtil.runOnIoDispatcher(() -> InternalUpdater.checkUpdate(getParentActivity(), true), 6000);
|
||||
|
||||
return fragmentView;
|
||||
|
@ -2949,7 +2949,7 @@ public class ProfileActivity extends BaseFragment implements NotificationCenter.
|
||||
return Unit.INSTANCE;
|
||||
});
|
||||
|
||||
if (!BuildVars.isFdroid) {
|
||||
if (!BuildVars.isFdroid && !BuildVars.isPlay) {
|
||||
builder.addItem(LocaleController.getString("CheckUpdate", R.string.CheckUpdate), R.drawable.baseline_search_24, (it) -> {
|
||||
UIUtil.runOnIoDispatcher(() -> InternalUpdater.checkUpdate(getParentActivity(), false));
|
||||
return Unit.INSTANCE;
|
||||
|
Loading…
Reference in New Issue
Block a user