Skip to content

Commit da10a4d

Browse files
committed
wear: update splash screen
1 parent e219b92 commit da10a4d

File tree

4 files changed

+6
-19
lines changed

4 files changed

+6
-19
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ buildscript {
2828
preference_version = '1.2.1'
2929
recyclerview_version = '1.3.1'
3030
room_version = '2.5.2'
31-
coresplash_version = '1.0.0'
31+
coresplash_version = '1.0.1'
3232
work_version = '2.8.1'
3333

3434
test_core_version = '1.5.0'

wearapp/src/main/java/com/thewizrd/simpleweather/LaunchActivity.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,9 @@ class LaunchActivity : ComponentActivity() {
2929
private var isReadyToView = false
3030

3131
override fun onCreate(savedInstanceState: Bundle?) {
32+
installSplashScreen()
3233
super.onCreate(savedInstanceState)
3334

34-
val splashScreen = installSplashScreen()
35-
3635
// Stop activity from rendering until next activity or if immediate update available
3736
val content = findViewById<View>(android.R.id.content)
3837
content.viewTreeObserver.addOnPreDrawListener(object : ViewTreeObserver.OnPreDrawListener {

wearapp/src/main/res/values-v31/styles.xml

Lines changed: 0 additions & 12 deletions
This file was deleted.

wearapp/src/main/res/values/styles.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@
2424
<item name="wearChipButtonStyle">@style/Widget.Wear.WearChipButton</item>
2525
</style>
2626

27-
<style name="WearAppTheme.Launcher" parent="Theme.SplashScreen">
28-
<item name="windowSplashScreenAnimatedIcon">@drawable/ic_logo</item>
29-
<item name="windowSplashScreenBackground">@android:color/black</item>
27+
<style name="WearAppTheme.Launcher" parent="Theme.SplashScreen.IconBackground">
3028
<item name="postSplashScreenTheme">@style/WearAppTheme</item>
31-
<item name="splashScreenIconSize">48dp</item>
29+
<item name="windowSplashScreenBackground">@android:color/black</item>
30+
<item name="windowSplashScreenAnimatedIcon">@drawable/ic_launcher_foreground</item>
31+
<item name="windowSplashScreenIconBackgroundColor">@color/ic_launcher_background</item>
3232
</style>
3333

3434
<style name="WearSettingsTheme" parent="@style/WearAppTheme">

0 commit comments

Comments
 (0)