From a616a0dd020e60c63e8a19f5415967447fdf3e93 Mon Sep 17 00:00:00 2001 From: Jorim Jaggi Date: Wed, 29 Jun 2016 16:33:39 -0700 Subject: [PATCH] Fix ugly flash between boot animation and setup wizard (1/2) When FallbackHome is displayed before the setup wizard, we need to match the last frame of the boot animation in FallbackHome. Bug: 29054814 Change-Id: I4f0096d398341c3749820177cebc26dea85cea05 --- ...fallback_home_unprovisioned_background.xml | 19 +++++++++++++++++++ res/values/themes.xml | 9 +++++++++ src/com/android/settings/FallbackHome.java | 5 ++++- 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 res/drawable/fallback_home_unprovisioned_background.xml diff --git a/res/drawable/fallback_home_unprovisioned_background.xml b/res/drawable/fallback_home_unprovisioned_background.xml new file mode 100644 index 00000000000..9ec3874672a --- /dev/null +++ b/res/drawable/fallback_home_unprovisioned_background.xml @@ -0,0 +1,19 @@ + + + + \ No newline at end of file diff --git a/res/values/themes.xml b/res/values/themes.xml index 43bb55c295c..e09a02d3b25 100644 --- a/res/values/themes.xml +++ b/res/values/themes.xml @@ -293,4 +293,13 @@ #00000000 + + diff --git a/src/com/android/settings/FallbackHome.java b/src/com/android/settings/FallbackHome.java index deb01a17642..158f6726c46 100644 --- a/src/com/android/settings/FallbackHome.java +++ b/src/com/android/settings/FallbackHome.java @@ -28,6 +28,7 @@ import android.os.Message; import android.os.UserManager; import android.provider.Settings; import android.util.Log; +import android.view.View; import java.util.Objects; @@ -42,7 +43,9 @@ public class FallbackHome extends Activity { // we don't flash the wallpaper before SUW if (Settings.Global.getInt(getContentResolver(), Settings.Global.DEVICE_PROVISIONED, 0) == 0) { - setTheme(android.R.style.Theme_Black_NoTitleBar_Fullscreen); + setTheme(R.style.FallbackHome_SetupWizard); + getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_FULLSCREEN + | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY); } registerReceiver(mReceiver, new IntentFilter(Intent.ACTION_USER_UNLOCKED));