Minor cleanup in check updates

This commit is contained in:
topjohnwu
2017-07-19 16:10:17 +08:00
parent 3550d1e61c
commit 240d14779a
4 changed files with 11 additions and 20 deletions

View File

@@ -117,7 +117,6 @@ public class MagiskManager extends Application {
shellLogging = false;
}
magiskHide = prefs.getBoolean("magiskhide", true);
updateNotification = prefs.getBoolean("notification", true);
initSU();
updateMagiskInfo();
updateBlockInfo();
@@ -183,6 +182,7 @@ public class MagiskManager extends Application {
}
public void updateMagiskInfo() {
updateNotification = prefs.getBoolean("notification", true);
List<String> ret;
ret = shell.sh("magisk -v");
if (!Utils.isValidShellResponse(ret)) {