mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 13:38:49 +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
|
||||
* in a background service, e.g. for the P2P demos.
|
||||
*/
|
||||
|
||||
fun subscribeToChanges(listener: SharedPreferences.OnSharedPreferenceChangeListener) {
|
||||
defaultPrefs.registerOnSharedPreferenceChangeListener(listener)
|
||||
}
|
||||
|
||||
fun unsubscribeToChanges(listener: SharedPreferences.OnSharedPreferenceChangeListener) {
|
||||
defaultPrefs.unregisterOnSharedPreferenceChangeListener(listener)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue