diff options
Diffstat (limited to 'src/com/android/camera/PhotoUI.java')
-rw-r--r-- | src/com/android/camera/PhotoUI.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/com/android/camera/PhotoUI.java b/src/com/android/camera/PhotoUI.java index 970e2e5c9..c3bdfa6c4 100644 --- a/src/com/android/camera/PhotoUI.java +++ b/src/com/android/camera/PhotoUI.java @@ -159,8 +159,7 @@ public class PhotoUI implements PieListener, @Override public void onLayoutChange(View v, int left, int top, int right, int bottom, int oldLeft, int oldTop, int oldRight, int oldBottom) { - if (mMenu != null) - mMenu.tryToCloseSubList(); + tryToCloseSubList(); Camera.Parameters parameters = ((PhotoModule)mController).getParameters(); if(parameters != null) { @@ -1256,6 +1255,11 @@ public class PhotoUI implements PieListener, } } + public void tryToCloseSubList() { + if (mMenu != null) + mMenu.tryToCloseSubList(); + } + public int getOrientation() { return mOrientation; } |