mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-10-11 00:23:41 +02:00
Fixes f-droid flavor after refactoring
This commit is contained in:
@@ -55,10 +55,10 @@ import com.halilibo.richtext.ui.resolveDefaults
|
|||||||
import com.vitorpamplona.amethyst.R
|
import com.vitorpamplona.amethyst.R
|
||||||
import com.vitorpamplona.amethyst.service.notifications.PushDistributorHandler
|
import com.vitorpamplona.amethyst.service.notifications.PushDistributorHandler
|
||||||
import com.vitorpamplona.amethyst.ui.screen.SharedPreferencesViewModel
|
import com.vitorpamplona.amethyst.ui.screen.SharedPreferencesViewModel
|
||||||
import com.vitorpamplona.amethyst.ui.screen.loggedIn.CheckifItNeedsToRequestNotificationPermission
|
|
||||||
import com.vitorpamplona.amethyst.ui.screen.loggedIn.SettingsRow
|
import com.vitorpamplona.amethyst.ui.screen.loggedIn.SettingsRow
|
||||||
import com.vitorpamplona.amethyst.ui.screen.loggedIn.SpinnerSelectionDialog
|
import com.vitorpamplona.amethyst.ui.screen.loggedIn.SpinnerSelectionDialog
|
||||||
import com.vitorpamplona.amethyst.ui.screen.loggedIn.TitleExplainer
|
import com.vitorpamplona.amethyst.ui.screen.loggedIn.TitleExplainer
|
||||||
|
import com.vitorpamplona.amethyst.ui.screen.loggedIn.notifications.checkifItNeedsToRequestNotificationPermission
|
||||||
import com.vitorpamplona.amethyst.ui.stringRes
|
import com.vitorpamplona.amethyst.ui.stringRes
|
||||||
import kotlinx.collections.immutable.ImmutableList
|
import kotlinx.collections.immutable.ImmutableList
|
||||||
import kotlinx.collections.immutable.toImmutableList
|
import kotlinx.collections.immutable.toImmutableList
|
||||||
@@ -67,7 +67,7 @@ import kotlinx.collections.immutable.toImmutableList
|
|||||||
@Composable
|
@Composable
|
||||||
fun SelectNotificationProvider(sharedPreferencesViewModel: SharedPreferencesViewModel) {
|
fun SelectNotificationProvider(sharedPreferencesViewModel: SharedPreferencesViewModel) {
|
||||||
val notificationPermissionState =
|
val notificationPermissionState =
|
||||||
CheckifItNeedsToRequestNotificationPermission(sharedPreferencesViewModel)
|
checkifItNeedsToRequestNotificationPermission(sharedPreferencesViewModel)
|
||||||
|
|
||||||
if (notificationPermissionState.status.isGranted) {
|
if (notificationPermissionState.status.isGranted) {
|
||||||
if (!sharedPreferencesViewModel.sharedPrefs.dontShowPushNotificationSelector) {
|
if (!sharedPreferencesViewModel.sharedPrefs.dontShowPushNotificationSelector) {
|
||||||
|
@@ -1237,8 +1237,8 @@ class AccountViewModel(
|
|||||||
|
|
||||||
override fun onCleared() {
|
override fun onCleared() {
|
||||||
Log.d("Init", "AccountViewModel onCleared")
|
Log.d("Init", "AccountViewModel onCleared")
|
||||||
collectorJob?.cancel()
|
|
||||||
feedStates.destroy()
|
feedStates.destroy()
|
||||||
|
collectorJob?.cancel()
|
||||||
super.onCleared()
|
super.onCleared()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user