ktlint and format

This commit is contained in:
Benoit Marty 2021-07-05 16:24:19 +02:00
parent 97cae9926b
commit 0e8018cbba
1 changed files with 2 additions and 1 deletions

View File

@ -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)
}