mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-22 01:15:54 +03:00
Add summary to the notification with the current value.
This commit is contained in:
parent
76bc6a5e0a
commit
3f6b5292d4
1 changed files with 2 additions and 0 deletions
|
@ -148,11 +148,13 @@ class VectorSettingsNotificationPreferenceFragment @Inject constructor(
|
|||
|
||||
findPreference<VectorPreference>(VectorPreferences.SETTINGS_UNIFIED_PUSH_RE_REGISTER_KEY)?.let {
|
||||
if (BuildConfig.ALLOW_EXTERNAL_UNIFIEDPUSH_DISTRIB) {
|
||||
it.summary = unifiedPushHelper.getCurrentDistributorName()
|
||||
it.onPreferenceClickListener = Preference.OnPreferenceClickListener {
|
||||
unifiedPushHelper.reRegister(
|
||||
requireActivity(),
|
||||
pushersManager
|
||||
) {
|
||||
it.summary = unifiedPushHelper.getCurrentDistributorName()
|
||||
session.pushersService().refreshPushers()
|
||||
refreshBackgroundSyncPrefs()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue