File tree 3 files changed +4
-4
lines changed
app/src/main/java/com/x8bit/bitwarden
platform/datasource/disk/di
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ object PlatformDiskModule {
67
67
klass = PlatformDatabase ::class .java,
68
68
name = " platform_database" ,
69
69
)
70
- .fallbackToDestructiveMigration()
70
+ .fallbackToDestructiveMigration(dropAllTables = false )
71
71
.addTypeConverter(ZonedDateTimeTypeConverter ())
72
72
.addCallback(DatabaseSchemeCallback (databaseSchemeManager = databaseSchemeManager))
73
73
.build()
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ class VaultDiskModule {
40
40
klass = VaultDatabase ::class .java,
41
41
name = " vault_database" ,
42
42
)
43
- .fallbackToDestructiveMigration()
43
+ .fallbackToDestructiveMigration(dropAllTables = false )
44
44
.addCallback(DatabaseSchemeCallback (databaseSchemeManager = databaseSchemeManager))
45
45
.addTypeConverter(ZonedDateTimeTypeConverter ())
46
46
.build()
Original file line number Diff line number Diff line change 1
1
package com.x8bit.bitwarden.ui.platform.theme
2
2
3
3
import android.app.Activity
4
- import android.graphics.drawable.ColorDrawable
5
4
import android.os.Build
6
5
import androidx.compose.foundation.isSystemInDarkTheme
7
6
import androidx.compose.material3.MaterialTheme
@@ -17,6 +16,7 @@ import androidx.compose.runtime.SideEffect
17
16
import androidx.compose.runtime.compositionLocalOf
18
17
import androidx.compose.ui.platform.LocalContext
19
18
import androidx.compose.ui.platform.LocalView
19
+ import androidx.core.graphics.drawable.toDrawable
20
20
import androidx.core.view.WindowCompat
21
21
import com.x8bit.bitwarden.ui.platform.components.field.interceptor.IncognitoInput
22
22
import com.x8bit.bitwarden.ui.platform.feature.settings.appearance.model.AppTheme
@@ -111,7 +111,7 @@ fun BitwardenTheme(
111
111
insetsController.isAppearanceLightStatusBars = ! darkTheme
112
112
insetsController.isAppearanceLightNavigationBars = ! darkTheme
113
113
window.setBackgroundDrawable(
114
- ColorDrawable ( bitwardenColorScheme.background.primary.value.toInt()),
114
+ bitwardenColorScheme.background.primary.value.toInt().toDrawable( ),
115
115
)
116
116
}
117
117
}
You can’t perform that action at this time.
0 commit comments