Merge "UX polish tweaks to FallbackHome." into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
e50853f485
@@ -302,10 +302,16 @@
|
||||
<item name="suwMarginSides">@dimen/suw_layout_margin_sides</item>
|
||||
</style>
|
||||
|
||||
<style name="FallbackHome" parent="@android:style/Theme.Material.Wallpaper.NoTitleBar">
|
||||
<item name="android:windowTranslucentStatus">true</item>
|
||||
<item name="android:windowTranslucentNavigation">true</item>
|
||||
<item name="android:windowAnimationStyle">@null</item>
|
||||
<style name="FallbackHome" parent="@android:style/Theme.DeviceDefault.Light.NoActionBar">
|
||||
<item name="android:windowBackground">@android:color/transparent</item>
|
||||
<item name="android:colorBackgroundCacheHint">@null</item>
|
||||
<item name="android:windowShowWallpaper">true</item>
|
||||
<item name="android:windowNoTitle">true</item>
|
||||
<item name="android:windowTranslucentStatus">false</item>
|
||||
<item name="android:windowTranslucentNavigation">false</item>
|
||||
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
|
||||
<item name="android:statusBarColor">#00000000</item>
|
||||
<item name="android:navigationBarColor">#00000000</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
||||
|
@@ -26,6 +26,7 @@ import android.os.Bundle;
|
||||
import android.os.Handler;
|
||||
import android.os.Message;
|
||||
import android.os.UserManager;
|
||||
import android.provider.Settings;
|
||||
import android.util.Log;
|
||||
|
||||
import java.util.Objects;
|
||||
@@ -36,6 +37,14 @@ public class FallbackHome extends Activity {
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
// Set ourselves totally black before the device is provisioned so that
|
||||
// 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);
|
||||
}
|
||||
|
||||
registerReceiver(mReceiver, new IntentFilter(Intent.ACTION_USER_UNLOCKED));
|
||||
maybeFinish();
|
||||
}
|
||||
|
Reference in New Issue
Block a user