mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-12-30 04:48:35 +03:00
Update VectorPreferences.kt
This commit is contained in:
parent
adc461d2f3
commit
2b403371a3
1 changed files with 0 additions and 2 deletions
|
@ -246,11 +246,9 @@ class VectorPreferences @Inject constructor(private val context: Context) {
|
||||||
* particularly useful when you need to be notified of a configuration change
|
* particularly useful when you need to be notified of a configuration change
|
||||||
* in a background service, e.g. for the P2P demos.
|
* in a background service, e.g. for the P2P demos.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
fun subscribeToChanges(listener: SharedPreferences.OnSharedPreferenceChangeListener) {
|
fun subscribeToChanges(listener: SharedPreferences.OnSharedPreferenceChangeListener) {
|
||||||
defaultPrefs.registerOnSharedPreferenceChangeListener(listener)
|
defaultPrefs.registerOnSharedPreferenceChangeListener(listener)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun unsubscribeToChanges(listener: SharedPreferences.OnSharedPreferenceChangeListener) {
|
fun unsubscribeToChanges(listener: SharedPreferences.OnSharedPreferenceChangeListener) {
|
||||||
defaultPrefs.unregisterOnSharedPreferenceChangeListener(listener)
|
defaultPrefs.unregisterOnSharedPreferenceChangeListener(listener)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue