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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user