File tree Expand file tree Collapse file tree 5 files changed +13
-5
lines changed
java/org/bitcoindevkit/devkitwallet/presentation Expand file tree Collapse file tree 5 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ dependencies {
57
57
implementation(" androidx.datastore:datastore:1.1.1" )
58
58
implementation(" com.google.protobuf:protobuf-javalite:3.18.0" )
59
59
implementation(" org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.3" )
60
+ implementation(" androidx.core:core-splashscreen:1.0.1" )
60
61
61
62
// Jetpack Compose
62
63
// Adding the Bill of Materials synchronizes dependencies in the androidx.compose namespace
Original file line number Diff line number Diff line change 13
13
14
14
<activity
15
15
android : name =" org.bitcoindevkit.devkitwallet.presentation.DevkitWalletActivity"
16
- android : theme =" @style/Theme.BitcoindevkitSampleApp.Launcher "
16
+ android : theme =" @style/SplashScreen "
17
17
android : exported =" true" >
18
18
<intent-filter >
19
19
<action android : name =" android.intent.action.MAIN" />
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import org.bitcoindevkit.devkitwallet.data.UserPreferencesSerializer
23
23
import org.bitcoindevkit.devkitwallet.domain.DwLogger
24
24
import org.bitcoindevkit.devkitwallet.domain.UserPreferencesRepository
25
25
import org.bitcoindevkit.devkitwallet.domain.Wallet
26
+ import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
26
27
import org.bitcoindevkit.devkitwallet.presentation.navigation.CreateWalletNavigation
27
28
import org.bitcoindevkit.devkitwallet.presentation.navigation.HomeNavigation
28
29
import org.bitcoindevkit.devkitwallet.presentation.theme.DevkitTheme
@@ -36,6 +37,8 @@ private val Context.userPreferencesStore: DataStore<UserPreferences> by dataStor
36
37
37
38
class DevkitWalletActivity : AppCompatActivity () {
38
39
override fun onCreate (savedInstanceState : Bundle ? ) {
40
+ installSplashScreen()
41
+
39
42
super .onCreate(savedInstanceState)
40
43
41
44
// Initialize Devkit Wallet Logger (used in the LogsScreen)
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <resources >
3
+ <style name =" SplashScreen" parent =" Theme.SplashScreen" >
4
+ <item name =" windowSplashScreenBackground" >@color/primary_dark</item >
5
+ <item name =" windowSplashScreenAnimatedIcon" >@drawable/ic_launcher_bdk_foreground</item >
6
+ <item name =" postSplashScreenTheme" >@style/Theme.BitcoindevkitSampleApp</item >
7
+ </style >
8
+ </resources >
Original file line number Diff line number Diff line change 4
4
<!-- Status bar color -->
5
5
<item name =" android:statusBarColor" >@color/primary_dark</item >
6
6
</style >
7
-
8
- <style name =" Theme.BitcoindevkitSampleApp.Launcher" >
9
- <item name =" android:background" >@drawable/launch_screen</item >
10
- </style >
11
7
</resources >
You can’t perform that action at this time.
0 commit comments