OSDN Git Service

Switch to using theme for translucent nav bars
authorMichael Jurka <mikejurka@google.com>
Tue, 8 Oct 2013 00:23:55 +0000 (17:23 -0700)
committerMichael Jurka <mikejurka@google.com>
Tue, 8 Oct 2013 00:23:55 +0000 (17:23 -0700)
res/values/styles.xml
src/com/android/launcher3/WallpaperCropActivity.java
src/com/android/launcher3/WallpaperPickerActivity.java

index 9f2a105..42704df 100644 (file)
@@ -22,6 +22,7 @@
         <item name="android:actionBarStyle">@style/WallpaperCropperActionBar</item>
         <item name="android:windowFullscreen">true</item>
         <item name="android:windowActionBarOverlay">true</item>
+        <item name="android:windowTranslucentNavigation">true</item>
     </style>
 
     <style name="WallpaperCropperActionBar" parent="android:style/Widget.Holo.ActionBar">
index 78c8964..fe09a55 100644 (file)
@@ -102,8 +102,6 @@ public class WallpaperCropActivity extends Activity {
                         cropImageAndSetWallpaper(imageUri, null, finishActivityWhenDone);
                     }
                 });
-        TranslucentDecor transparentDecor = new TranslucentDecor(findViewById(R.id.wallpaper_root));
-        transparentDecor.requestTranslucentDecor(true);
     }
 
     public boolean enableRotation() {
index 82c9977..708d630 100644 (file)
@@ -181,8 +181,6 @@ public class WallpaperPickerActivity extends WallpaperCropActivity {
     protected void init() {
         setContentView(R.layout.wallpaper_picker);
         final WallpaperRootView root = (WallpaperRootView) findViewById(R.id.wallpaper_root);
-        TranslucentDecor transparentDecor = new TranslucentDecor(root);
-        transparentDecor.requestTranslucentDecor(true);
 
         mCropView = (CropView) findViewById(R.id.cropView);
         mWallpaperStrip = findViewById(R.id.wallpaper_strip);