mirror of
https://github.com/yuliskov/SmartTube.git
synced 2026-05-13 08:20:51 -05:00
data store delay fix
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user