From 0b283bda56d75d1c9c0d429efdf2aebad142902d Mon Sep 17 00:00:00 2001 From: S1m Date: Tue, 5 Oct 2021 07:27:56 +0200 Subject: [PATCH] Lint Change-Id: I7a4827e45ecdab9ad1d80dc2826481a2ebb91b44 --- vector/src/main/java/im/vector/app/core/pushers/UPHelper.kt | 6 +++++- .../VectorSettingsNotificationPreferenceFragment.kt | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/vector/src/main/java/im/vector/app/core/pushers/UPHelper.kt b/vector/src/main/java/im/vector/app/core/pushers/UPHelper.kt index 32b08f069e..f00a3ee9d8 100644 --- a/vector/src/main/java/im/vector/app/core/pushers/UPHelper.kt +++ b/vector/src/main/java/im/vector/app/core/pushers/UPHelper.kt @@ -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) diff --git a/vector/src/main/java/im/vector/app/features/settings/notifications/VectorSettingsNotificationPreferenceFragment.kt b/vector/src/main/java/im/vector/app/features/settings/notifications/VectorSettingsNotificationPreferenceFragment.kt index bb411f1408..36ca3b10ea 100644 --- a/vector/src/main/java/im/vector/app/features/settings/notifications/VectorSettingsNotificationPreferenceFragment.kt +++ b/vector/src/main/java/im/vector/app/features/settings/notifications/VectorSettingsNotificationPreferenceFragment.kt @@ -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 }