mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 05:31:21 +03:00
ktlint and format
This commit is contained in:
parent
97cae9926b
commit
0e8018cbba
1 changed files with 2 additions and 1 deletions
|
@ -253,7 +253,7 @@ class VectorPreferences @Inject constructor(private val context: Context) {
|
|||
}
|
||||
|
||||
private val defaultPrefs = DefaultSharedPreferences.getInstance(context)
|
||||
|
||||
|
||||
/**
|
||||
* Allow subscribing and unsubscribing to configuration changes. This is
|
||||
* particularly useful when you need to be notified of a configuration change
|
||||
|
@ -262,6 +262,7 @@ class VectorPreferences @Inject constructor(private val context: Context) {
|
|||
fun subscribeToChanges(listener: SharedPreferences.OnSharedPreferenceChangeListener) {
|
||||
defaultPrefs.registerOnSharedPreferenceChangeListener(listener)
|
||||
}
|
||||
|
||||
fun unsubscribeToChanges(listener: SharedPreferences.OnSharedPreferenceChangeListener) {
|
||||
defaultPrefs.unregisterOnSharedPreferenceChangeListener(listener)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue