summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBobby Georgescu <georgescu@google.com>2012-10-10 21:09:54 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-10-10 21:09:54 -0700
commit198ed0e8be56f93b44a9eae860bb705fc9823dbb (patch)
treebb22f981b9517dfa7cd0814a1f3369175cc27841
parenta3917bb0f70d998201ed3d72ad58dbc02cc85a2c (diff)
parent96442bc44c18160583867ad464509c74644a927a (diff)
downloadandroid_packages_apps_Snap-198ed0e8be56f93b44a9eae860bb705fc9823dbb.tar.gz
android_packages_apps_Snap-198ed0e8be56f93b44a9eae860bb705fc9823dbb.tar.bz2
android_packages_apps_Snap-198ed0e8be56f93b44a9eae860bb705fc9823dbb.zip
am c735669f: Merge "Make album set grid view reflect latest UI mocks" into gb-ub-photos-arches
* commit 'c735669fdbd1aec674412f43e64b956e8c10b643': Make album set grid view reflect latest UI mocks
-rw-r--r--src/com/android/gallery3d/app/Config.java3
-rw-r--r--src/com/android/gallery3d/ui/AlbumSetSlotRenderer.java8
2 files changed, 5 insertions, 6 deletions
diff --git a/src/com/android/gallery3d/app/Config.java b/src/com/android/gallery3d/app/Config.java
index 04b210e0e..7183acc33 100644
--- a/src/com/android/gallery3d/app/Config.java
+++ b/src/com/android/gallery3d/app/Config.java
@@ -49,8 +49,7 @@ final class Config {
slotViewSpec.rowsLand = r.getInteger(R.integer.albumset_rows_land);
slotViewSpec.rowsPort = r.getInteger(R.integer.albumset_rows_port);
slotViewSpec.slotGap = r.getDimensionPixelSize(R.dimen.albumset_slot_gap);
- slotViewSpec.slotHeightAdditional = r.getDimensionPixelSize(
- R.dimen.albumset_label_background_height);
+ slotViewSpec.slotHeightAdditional = 0;
paddingTop = r.getDimensionPixelSize(R.dimen.albumset_padding_top);
paddingBottom = r.getDimensionPixelSize(R.dimen.albumset_padding_bottom);
diff --git a/src/com/android/gallery3d/ui/AlbumSetSlotRenderer.java b/src/com/android/gallery3d/ui/AlbumSetSlotRenderer.java
index 5c246e8e3..d5337f00d 100644
--- a/src/com/android/gallery3d/ui/AlbumSetSlotRenderer.java
+++ b/src/com/android/gallery3d/ui/AlbumSetSlotRenderer.java
@@ -127,10 +127,10 @@ public class AlbumSetSlotRenderer extends AbstractSlotRenderer {
GLCanvas canvas, int index, AlbumSetEntry entry, int width, int height) {
int renderRequestFlags = 0;
if (entry.album != null && entry.album.isCameraRoll()) {
- int minDim = Math.min(width, height);
- int dim = minDim / 2;
- int pos = (minDim - dim) / 2;
- mCameraOverlay.draw(canvas, pos, pos, dim, dim);
+ int uncoveredHeight = height - mLabelSpec.labelBackgroundHeight;
+ int dim = uncoveredHeight / 2;
+ mCameraOverlay.draw(canvas, (width - dim) / 2,
+ (uncoveredHeight - dim) / 2, dim, dim);
}
if (mPressedIndex == index) {
if (mAnimatePressedUp) {