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