mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-14 14:02:44 +00:00
avoid potential issues when restoring settings
This commit is contained in:
parent
246cd6c5cf
commit
f06193f1f0
2 changed files with 19 additions and 4 deletions
|
@ -240,6 +240,14 @@ public final class Settings implements SharedPreferences.OnSharedPreferenceChang
|
|||
}
|
||||
}
|
||||
|
||||
public void stopListener() {
|
||||
mPrefs.unregisterOnSharedPreferenceChangeListener(this);
|
||||
}
|
||||
|
||||
public void startListener() {
|
||||
mPrefs.registerOnSharedPreferenceChangeListener(this);
|
||||
}
|
||||
|
||||
// TODO: Remove this method and add proxy method to SettingsValues.
|
||||
public SettingsValues getCurrent() {
|
||||
return mSettingsValues;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue