1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-13 20:24:14 +02:00

reset launch count for version 2.0

This commit is contained in:
oliexdev
2019-02-16 12:00:34 +01:00
parent 3711763517
commit 0626cb5b74

View File

@@ -142,6 +142,12 @@ public class MainActivity extends BaseAppCompatActivity
prefs.edit().putBoolean("firstStart", false).apply();
}
if (prefs.getBoolean("resetLaunchCountForVersion2.0", true)) {
prefs.edit().putInt("launchCount", 0).commit();
prefs.edit().putBoolean("resetLaunchCountForVersion2.0", false).apply();
}
if(!valueOfCountModified){
int launchCount = prefs.getInt("launchCount", 0);