Skip to content

Commit 094a437

Browse files
Merge pull request #1763 from session-foundation/fix/bg-whitelist-fast-mode
Always display the background run option in the settings
2 parents d022e4c + cc1a30a commit 094a437

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

app/src/main/java/org/thoughtcrime/securesms/preferences/NotificationsPreferenceFragment.kt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -178,14 +178,6 @@ class NotificationsPreferenceFragment : CorrectedPreferenceFragment() {
178178
true
179179
}
180180

181-
lifecycleScope.launch {
182-
repeatOnLifecycle(Lifecycle.State.STARTED) {
183-
prefs.pushEnabled.collect { enabled ->
184-
whiteListControl?.isVisible = !enabled
185-
}
186-
}
187-
}
188-
189181
// Set up FCM toggle
190182
val fcmKey = "pref_key_use_fcm"
191183
val fcmPreference: SwitchPreferenceCompat = findPreference(fcmKey)!!

app/src/main/res/xml/preferences_notifications.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
<org.thoughtcrime.securesms.components.SwitchPreferenceCompat
1515
android:title="@string/runAppBackground"
16-
app:isPreferenceVisible="false"
1716
android:defaultValue="false"
1817
android:key="whitelist_background" />
1918

0 commit comments

Comments
 (0)