Removed battery optimization promt for updates
This commit is contained in:
parent
c5a4101837
commit
be0fee4fc9
Binary file not shown.
|
@ -6,8 +6,8 @@ android {
|
||||||
applicationId "org.disroot.disrootapp"
|
applicationId "org.disroot.disrootapp"
|
||||||
minSdkVersion 15
|
minSdkVersion 15
|
||||||
targetSdkVersion 28
|
targetSdkVersion 28
|
||||||
versionCode 20
|
versionCode 21
|
||||||
versionName "1.2.1"
|
versionName "1.2.2"
|
||||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||||
}
|
}
|
||||||
buildTypes {
|
buildTypes {
|
||||||
|
|
|
@ -666,7 +666,7 @@ public class MainActivity extends AppCompatActivity implements View.OnLongClickL
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!firstStart.getBoolean("update", false)&&info.firstInstallTime != info.lastUpdateTime) {
|
if (!firstStart.getBoolean("update", false)) {
|
||||||
showOptimzationInfo();
|
showOptimzationInfo();
|
||||||
firstStart.edit().putBoolean("update", true).apply();
|
firstStart.edit().putBoolean("update", true).apply();
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue