summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNebojsa Cvetkovic <nebkat@gmail.com>2013-07-21 00:40:26 +0200
committerNebojsa Cvetkovic <nebkat@gmail.com>2013-07-21 00:40:26 +0200
commit1a6379dcb9ad57735ee2f9b647fcb8c2cdbcab24 (patch)
tree08da2afc356f6be8a595c0f74a9f3d626fee071b
parent5eebbc040c803d39bf88c11b70367edc970acfa2 (diff)
downloadpackages_apps_trebuchet-1a6379dcb9ad57735ee2f9b647fcb8c2cdbcab24.zip
packages_apps_trebuchet-1a6379dcb9ad57735ee2f9b647fcb8c2cdbcab24.tar.gz
packages_apps_trebuchet-1a6379dcb9ad57735ee2f9b647fcb8c2cdbcab24.tar.bz2
Hotseat: Disable hitsPreviousPage if hotseat is vertical
Change-Id: I224b345fb1196602111c2209d134093e2dfee891
-rw-r--r--src/com/cyanogenmod/trebuchet/Hotseat.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/com/cyanogenmod/trebuchet/Hotseat.java b/src/com/cyanogenmod/trebuchet/Hotseat.java
index d5fd0ec..adf6e9d 100644
--- a/src/com/cyanogenmod/trebuchet/Hotseat.java
+++ b/src/com/cyanogenmod/trebuchet/Hotseat.java
@@ -123,6 +123,16 @@ public class Hotseat extends PagedView {
return (mIsLandscape && mTransposeLayoutWithOrientation);
}
+ @Override
+ protected boolean hitsPreviousPage(float x, float y) {
+ return !hasVerticalHotseat() && super.hitsPreviousPage(x, y);
+ }
+
+ @Override
+ protected boolean hitsNextPage(float x, float y) {
+ return !hasVerticalHotseat() && super.hitsNextPage(x, y);
+ }
+
/* Get the orientation invariant order of the item in the hotseat for persistence. */
int getOrderInHotseat(int x, int y) {
return hasVerticalHotseat() ? (mCellCount - y - 1) : x;