data store delay fix

This commit is contained in:
Yuriy Liskov
2025-05-25 09:31:07 +03:00
parent 65243ba4d4
commit fc40b745ad
3 changed files with 4 additions and 0 deletions
@@ -787,6 +787,7 @@ public class GeneralData implements ProfileChangeListener {
@Override
public void onProfileChanged() {
Utils.removeCallbacks(mPersistStateInt);
restoreState();
}
}
@@ -880,6 +880,8 @@ public class PlayerData extends DataChangeBase implements PlayerConstants, Profi
@Override
public void onProfileChanged() {
Utils.removeCallbacks(mPersistStateInt);
// reset on profile change
mSpeeds.clear();
@@ -709,6 +709,7 @@ public class PlayerTweaksData implements ProfileChangeListener {
@Override
public void onProfileChanged() {
Utils.removeCallbacks(mPersistDataInt);
restoreData();
}
}