1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-06 16:56:55 +02:00

reset unique number after clearing all data of an user

This commit is contained in:
OliE
2017-06-10 12:56:31 +02:00
parent da60317da6
commit 64afdb0ff9

View File

@@ -308,6 +308,8 @@ public class OpenScale {
}
public void clearScaleData(int userId) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
prefs.edit().putInt("uniqueNumber", 0x00).commit();
scaleDB.clearScaleData(userId);
updateScaleData();