forked from Disroot/disapp
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"
|
||||
minSdkVersion 15
|
||||
targetSdkVersion 28
|
||||
versionCode 20
|
||||
versionName "1.2.1"
|
||||
versionCode 21
|
||||
versionName "1.2.2"
|
||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
buildTypes {
|
||||
|
|
|
@ -666,7 +666,7 @@ public class MainActivity extends AppCompatActivity implements View.OnLongClickL
|
|||
return;
|
||||
}
|
||||
|
||||
if (!firstStart.getBoolean("update", false)&&info.firstInstallTime != info.lastUpdateTime) {
|
||||
if (!firstStart.getBoolean("update", false)) {
|
||||
showOptimzationInfo();
|
||||
firstStart.edit().putBoolean("update", true).apply();
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue