Fix several settings issues.

This commit is contained in:
Alex Hart
2021-05-17 10:43:26 -03:00
parent 64ebf20c1b
commit 3965df78c9
5 changed files with 90 additions and 71 deletions

View File

@@ -212,7 +212,7 @@ public final class AvatarImageView extends AppCompatImageView {
setImageDrawable(unknownRecipientDrawable);
}
super.setOnClickListener(listener);
disableQuickContact();
}
}

View File

@@ -31,8 +31,9 @@ class NotificationsSettingsViewModel(private val sharedPreferences: SharedPrefer
}
fun setMessageNotificationsSound(sound: Uri?) {
SignalStore.settings().messageNotificationSound = sound ?: Uri.EMPTY
NotificationChannels.updateMessageRingtone(ApplicationDependencies.getApplication(), sound)
val messageSound = sound ?: Uri.EMPTY
SignalStore.settings().messageNotificationSound = messageSound
NotificationChannels.updateMessageRingtone(ApplicationDependencies.getApplication(), messageSound)
store.update { getState() }
}

View File

@@ -131,7 +131,7 @@ class TextPreference(
) : PreferenceModel<TextPreference>(title = title, summary = summary)
class DividerPreference : PreferenceModel<DividerPreference>() {
override fun areItemsTheSame(newItem: DividerPreference) = false
override fun areItemsTheSame(newItem: DividerPreference) = true
}
class RadioListPreference(