Merge \"Fix ugly flash between boot animation and setup wizard (1/2)\" into nyc-mr1-dev

am: 9711521e3c

Change-Id: Ibe1410573df0d661ae62e45ff798bfbcc0079a1a
This commit is contained in:
Jorim Jaggi
2016-06-30 23:10:38 +00:00
committed by android-build-merger
3 changed files with 32 additions and 1 deletions

View File

@@ -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));