summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2013-05-21 22:55:16 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-05-21 22:55:16 +0000
commit15074e2673f2165188e71dc3d2470f0093fa71e7 (patch)
tree6833a94908667458ed490591736af387942a31fc /src
parent4f91ab5d099632afd84dd7bd80a804cbbe1f3588 (diff)
parentafed6ec95d9cbc83a211c032209fde04c08c611d (diff)
downloadandroid_packages_apps_Snap-15074e2673f2165188e71dc3d2470f0093fa71e7.tar.gz
android_packages_apps_Snap-15074e2673f2165188e71dc3d2470f0093fa71e7.tar.bz2
android_packages_apps_Snap-15074e2673f2165188e71dc3d2470f0093fa71e7.zip
Merge "Fix height" into gb-ub-photos-bryce
Diffstat (limited to 'src')
-rw-r--r--src/com/android/gallery3d/filtershow/category/CategoryAdapter.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/filtershow/category/CategoryAdapter.java b/src/com/android/gallery3d/filtershow/category/CategoryAdapter.java
index 0a65cd92f..4dfaa7fe5 100644
--- a/src/com/android/gallery3d/filtershow/category/CategoryAdapter.java
+++ b/src/com/android/gallery3d/filtershow/category/CategoryAdapter.java
@@ -34,7 +34,7 @@ import com.android.gallery3d.filtershow.ui.FilterIconButton;
public class CategoryAdapter extends ArrayAdapter<Action> {
private static final String LOGTAG = "CategoryAdapter";
- private int mItemHeight = 200;
+ private int mItemHeight;
private View mContainer;
private int mItemWidth = ListView.LayoutParams.MATCH_PARENT;
private boolean mUseFilterIconButton = false;
@@ -43,6 +43,7 @@ public class CategoryAdapter extends ArrayAdapter<Action> {
public CategoryAdapter(Context context, int textViewResourceId) {
super(context, textViewResourceId);
+ mItemHeight = (int) (context.getResources().getDisplayMetrics().density * 100);
}
public CategoryAdapter(Context context) {