diff options
| author | nicolasroard <nicolasroard@google.com> | 2013-04-09 08:18:18 -0700 |
|---|---|---|
| committer | nicolasroard <nicolasroard@google.com> | 2013-04-09 08:18:18 -0700 |
| commit | 948a4e6e38d8d9ec9926877524478d6692437105 (patch) | |
| tree | d080b3ecc4b3af03a90fe985df0db750979eeb6f | |
| parent | d98f781dd0899477ff5be42279a06da81fd6e526 (diff) | |
| download | android_packages_apps_Gallery2-948a4e6e38d8d9ec9926877524478d6692437105.tar.gz android_packages_apps_Gallery2-948a4e6e38d8d9ec9926877524478d6692437105.tar.bz2 android_packages_apps_Gallery2-948a4e6e38d8d9ec9926877524478d6692437105.zip | |
Fix history panel first appearance
Change-Id: I49c3f91d1d65cc64b15080c64709f769fc8a8f22
| -rw-r--r-- | src/com/android/gallery3d/filtershow/FilterShowActivity.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/filtershow/FilterShowActivity.java b/src/com/android/gallery3d/filtershow/FilterShowActivity.java index d4ecf8063..ff6e46635 100644 --- a/src/com/android/gallery3d/filtershow/FilterShowActivity.java +++ b/src/com/android/gallery3d/filtershow/FilterShowActivity.java @@ -548,6 +548,12 @@ public class FilterShowActivity extends Activity implements OnItemClickListener, private int translateMainPanel(View viewPanel) { int accessoryPanelWidth = viewPanel.getWidth(); + if (accessoryPanelWidth == 0) { + // TODO: fixes this by using a fragment. Currently, + // the first time we get called the panel hasn't been + // layed out yet, so we get a size zero. + accessoryPanelWidth = (int) getPixelsFromDip(200); + } int mainViewWidth = findViewById(R.id.mainView).getWidth(); int mainPanelWidth = mImageShow.getDisplayedImageBounds().width(); if (mainPanelWidth == 0) { |
