mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-12-24 09:58:31 +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 -> {
|
1 -> {
|
||||||
if (forceShowSelection) {
|
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.saveDistributor(context, distributors.first())
|
||||||
up.registerApp(context)
|
up.registerApp(context)
|
||||||
|
|
|
@ -135,7 +135,7 @@ class VectorSettingsNotificationPreferenceFragment @Inject constructor(
|
||||||
updateEnabledForDevice(false)
|
updateEnabledForDevice(false)
|
||||||
UPHelper.registerUnifiedPush(requireContext(), forceShowSelection = true) {
|
UPHelper.registerUnifiedPush(requireContext(), forceShowSelection = true) {
|
||||||
updateEnabledForDevice(true)
|
updateEnabledForDevice(true)
|
||||||
Handler(Looper.getMainLooper()).postDelayed({ refreshBackgroundSyncPrefs() } , 500)
|
Handler(Looper.getMainLooper()).postDelayed({ refreshBackgroundSyncPrefs() }, 500)
|
||||||
}
|
}
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue