summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/module
diff options
context:
space:
mode:
authorAngus Kong <shkong@google.com>2013-12-03 10:02:35 -0800
committerAngus Kong <shkong@google.com>2013-12-03 10:03:36 -0800
commit2f0e4a3995684c986afad55db7715c15393a9df0 (patch)
treed8fcb6dd472d895c3489c34e69e98df12daed647 /src/com/android/camera/module
parent63233419b09c73e1b45e61acae2c8a2b2d9fd226 (diff)
downloadandroid_packages_apps_Camera2-2f0e4a3995684c986afad55db7715c15393a9df0.tar.gz
android_packages_apps_Camera2-2f0e4a3995684c986afad55db7715c15393a9df0.tar.bz2
android_packages_apps_Camera2-2f0e4a3995684c986afad55db7715c15393a9df0.zip
Make onLayoutOrientationChanged to take a boolean.
ModuleController.onLayoutOrientationChanged() call back can just take a boolean to know whether the layout orientation is in landscape or portrait. Change-Id: I1675cbea263b12bb0b568a6038f0fc17dd03799a
Diffstat (limited to 'src/com/android/camera/module')
-rw-r--r--src/com/android/camera/module/ModuleController.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/android/camera/module/ModuleController.java b/src/com/android/camera/module/ModuleController.java
index 0d4466830..e32b8d7e9 100644
--- a/src/com/android/camera/module/ModuleController.java
+++ b/src/com/android/camera/module/ModuleController.java
@@ -69,15 +69,15 @@ public interface ModuleController {
/**
* Called when the framework layout orientation changed.
*
- * @param orientation {@link Configuration#ORIENTATION_LANDSCAPE} or
- * {@link Configuration#ORIENTATION_PORTRAIT}.
+ * @param isLandscape Whether the new orientation is landscape or portrait.
*/
- public void onLayoutOrientationChanged(int orientation);
+ public void onLayoutOrientationChanged(boolean isLandscape);
/**
* Called when the UI orientation is changed.
*
- * @param orientation The new orientation.
+ * @param orientation The new orientation, valid values are 0, 90, 180 and
+ * 270.
*/
public void onOrientationChanged(int orientation);