mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-08 09:46:55 +02:00
reset unique number after clearing all data of an user
This commit is contained in:
@@ -308,6 +308,8 @@ public class OpenScale {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void clearScaleData(int userId) {
|
public void clearScaleData(int userId) {
|
||||||
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||||
|
prefs.edit().putInt("uniqueNumber", 0x00).commit();
|
||||||
scaleDB.clearScaleData(userId);
|
scaleDB.clearScaleData(userId);
|
||||||
|
|
||||||
updateScaleData();
|
updateScaleData();
|
||||||
|
Reference in New Issue
Block a user