Skip to content
Snippets Groups Projects
Commit be0fee4f authored by Massimiliano's avatar Massimiliano
Browse files

Removed battery optimization promt for updates

parent c5a41018
Branches
Tags
No related merge requests found
No preview for this file type
......@@ -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;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment