summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/app/AlbumPage.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
commited0e84d75ed4f75ac9589bb3ea04b7327f8745f2 (patch)
tree7b166f00292242a38924609dff11a8dd39816123 /src/com/android/gallery3d/app/AlbumPage.java
parent5b01ee731c6acbcef657746a23d5cfde2251ab7e (diff)
downloadandroid_packages_apps_Snap-ed0e84d75ed4f75ac9589bb3ea04b7327f8745f2.tar.gz
android_packages_apps_Snap-ed0e84d75ed4f75ac9589bb3ea04b7327f8745f2.tar.bz2
android_packages_apps_Snap-ed0e84d75ed4f75ac9589bb3ea04b7327f8745f2.zip
Change from fillRect to clearBuffer for pure black background.
Change-Id: Ie3da19b377f3e7926ab37c5936ce48cbb3227f92
Diffstat (limited to 'src/com/android/gallery3d/app/AlbumPage.java')
-rw-r--r--src/com/android/gallery3d/app/AlbumPage.java13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/com/android/gallery3d/app/AlbumPage.java b/src/com/android/gallery3d/app/AlbumPage.java
index 120519da0..22b189999 100644
--- a/src/com/android/gallery3d/app/AlbumPage.java
+++ b/src/com/android/gallery3d/app/AlbumPage.java
@@ -52,7 +52,6 @@ import com.android.gallery3d.ui.PositionRepository;
import com.android.gallery3d.ui.PositionRepository.Position;
import com.android.gallery3d.ui.SelectionManager;
import com.android.gallery3d.ui.SlotView;
-import com.android.gallery3d.ui.StaticBackground;
import com.android.gallery3d.util.Future;
import com.android.gallery3d.util.GalleryUtils;
@@ -78,7 +77,6 @@ public class AlbumPage extends ActivityState implements GalleryActionBar.Cluster
private static final float USER_DISTANCE_METER = 0.3f;
private boolean mIsActive = false;
- private StaticBackground mStaticBackground;
private AlbumView mAlbumView;
private Path mMediaSetPath;
@@ -110,9 +108,13 @@ public class AlbumPage extends ActivityState implements GalleryActionBar.Cluster
private final 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) {
- mStaticBackground.layout(0, 0, right - left, bottom - top);
int slotViewTop = GalleryActionBar.getHeight((Activity) mActivity);
int slotViewBottom = bottom - top;
@@ -364,9 +366,6 @@ public class AlbumPage extends ActivityState implements GalleryActionBar.Cluster
}
private void initializeViews() {
- mStaticBackground = new StaticBackground((Context) mActivity);
- mRootPane.addComponent(mStaticBackground);
-
mSelectionManager = new SelectionManager(mActivity, false);
mSelectionManager.setSelectionListener(this);
mGridDrawer = new GridDrawer((Context) mActivity, mSelectionManager);
@@ -402,8 +401,6 @@ public class AlbumPage extends ActivityState implements GalleryActionBar.Cluster
return onItemSelected(item);
}
});
- mStaticBackground.setImage(R.drawable.background,
- R.drawable.background_portrait);
}
private void initializeData(Bundle data) {