mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-12-23 17:40:37 +03:00
Lint
Change-Id: I7a4827e45ecdab9ad1d80dc2826481a2ebb91b44
This commit is contained in:
parent
c6c5b123d6
commit
0b283bda56
2 changed files with 6 additions and 2 deletions
|
@ -115,7 +115,11 @@ object UPHelper {
|
|||
}
|
||||
1 -> {
|
||||
if (forceShowSelection) {
|
||||
Toast.makeText(context.applicationContext, context.getString(R.string.toast_unifiedpush_one_push_distributor, distributors.first()), Toast.LENGTH_LONG).show()
|
||||
Toast.makeText(
|
||||
context.applicationContext,
|
||||
context.getString(R.string.toast_unifiedpush_one_push_distributor, distributors.first()),
|
||||
Toast.LENGTH_LONG
|
||||
).show()
|
||||
}
|
||||
up.saveDistributor(context, distributors.first())
|
||||
up.registerApp(context)
|
||||
|
|
|
@ -135,7 +135,7 @@ class VectorSettingsNotificationPreferenceFragment @Inject constructor(
|
|||
updateEnabledForDevice(false)
|
||||
UPHelper.registerUnifiedPush(requireContext(), forceShowSelection = true) {
|
||||
updateEnabledForDevice(true)
|
||||
Handler(Looper.getMainLooper()).postDelayed({ refreshBackgroundSyncPrefs() } , 500)
|
||||
Handler(Looper.getMainLooper()).postDelayed({ refreshBackgroundSyncPrefs() }, 500)
|
||||
}
|
||||
true
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue