summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/app/ManageCachePage.java
diff options
context:
space:
mode:
authorChih-Chung Chang <chihchung@google.com>2012-02-17 02:25:23 +0800
committerChih-Chung Chang <chihchung@google.com>2012-02-17 02:26:19 +0800
commitff951a85c3c9015ef7ccd8902e69ce88360a0cb8 (patch)
treeaf3cb5ea25ef8b92200fbe2689edce64e467c402 /src/com/android/gallery3d/app/ManageCachePage.java
parent3950038a697470bb8b7cd6798716aecd8285eb00 (diff)
downloadandroid_packages_apps_Gallery2-ff951a85c3c9015ef7ccd8902e69ce88360a0cb8.tar.gz
android_packages_apps_Gallery2-ff951a85c3c9015ef7ccd8902e69ce88360a0cb8.tar.bz2
android_packages_apps_Gallery2-ff951a85c3c9015ef7ccd8902e69ce88360a0cb8.zip
Change from fillRect to clearBuffer for pure black background.
Change-Id: Ie3da19b377f3e7926ab37c5936ce48cbb3227f92
Diffstat (limited to 'src/com/android/gallery3d/app/ManageCachePage.java')
-rw-r--r--src/com/android/gallery3d/app/ManageCachePage.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/com/android/gallery3d/app/ManageCachePage.java b/src/com/android/gallery3d/app/ManageCachePage.java
index 27f92e42d..225323636 100644
--- a/src/com/android/gallery3d/app/ManageCachePage.java
+++ b/src/com/android/gallery3d/app/ManageCachePage.java
@@ -30,7 +30,6 @@ import com.android.gallery3d.ui.MenuExecutor;
import com.android.gallery3d.ui.SelectionDrawer;
import com.android.gallery3d.ui.SelectionManager;
import com.android.gallery3d.ui.SlotView;
-import com.android.gallery3d.ui.StaticBackground;
import com.android.gallery3d.ui.SynchronizedHandler;
import com.android.gallery3d.util.Future;
import com.android.gallery3d.util.GalleryUtils;
@@ -67,7 +66,6 @@ public class ManageCachePage extends ActivityState implements
private static final int MSG_REQUEST_LAYOUT = 2;
private static final int PROGRESS_BAR_MAX = 10000;
- private StaticBackground mStaticBackground;
private AlbumSetView mAlbumSetView;
private MediaSet mMediaSet;
@@ -96,6 +94,11 @@ public class ManageCachePage extends ActivityState implements
private float mMatrix[] = new float[16];
@Override
+ protected void renderBackground(GLCanvas view) {
+ view.clearBuffer();
+ }
+
+ @Override
protected void onLayout(
boolean changed, int left, int top, int right, int bottom) {
// Hack: our layout depends on other components on the screen.
@@ -107,7 +110,6 @@ public class ManageCachePage extends ActivityState implements
}
mLayoutReady = false;
- mStaticBackground.layout(0, 0, right - left, bottom - top);
mEyePosition.resetPosition();
Activity activity = (Activity) mActivity;
int slotViewTop = GalleryActionBar.getHeight(activity);
@@ -288,8 +290,6 @@ public class ManageCachePage extends ActivityState implements
mSelectionManager = new SelectionManager(mActivity, true);
mSelectionManager.setSelectionListener(this);
- mStaticBackground = new StaticBackground(activity);
- mRootPane.addComponent(mStaticBackground);
Config.ManageCachePage config = Config.ManageCachePage.get(activity);
mSelectionDrawer = new ManageCacheDrawer((Context) mActivity,
@@ -324,7 +324,6 @@ public class ManageCachePage extends ActivityState implements
mFooterContent = inflater.inflate(R.layout.manage_offline_bar, null);
mFooterContent.findViewById(R.id.done).setOnClickListener(this);
- mStaticBackground.setImage(R.drawable.background, R.drawable.background_portrait);
refreshCacheStorageInfo();
}