mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-12-25 02:18:31 +03:00
Update VectorPreferences.kt
This commit is contained in:
parent
e53801957c
commit
adc461d2f3
1 changed files with 3 additions and 2 deletions
|
@ -16,6 +16,7 @@
|
|||
package im.vector.app.features.settings
|
||||
|
||||
import android.content.Context
|
||||
import android.content.SharedPreferences
|
||||
import android.media.RingtoneManager
|
||||
import android.net.Uri
|
||||
import android.provider.MediaStore
|
||||
|
@ -246,11 +247,11 @@ class VectorPreferences @Inject constructor(private val context: Context) {
|
|||
* in a background service, e.g. for the P2P demos.
|
||||
*/
|
||||
|
||||
public fun subscribeToChanges(listener: SharedPreferences.OnSharedPreferenceChangeListener) {
|
||||
fun subscribeToChanges(listener: SharedPreferences.OnSharedPreferenceChangeListener) {
|
||||
defaultPrefs.registerOnSharedPreferenceChangeListener(listener)
|
||||
}
|
||||
|
||||
public fun unsubscribeToChanges(listener: SharedPreferences.OnSharedPreferenceChangeListener) {
|
||||
fun unsubscribeToChanges(listener: SharedPreferences.OnSharedPreferenceChangeListener) {
|
||||
defaultPrefs.unregisterOnSharedPreferenceChangeListener(listener)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue