diff options
author | Nebojsa Cvetkovic <nebkat@gmail.com> | 2013-07-20 15:41:49 -0700 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2013-07-20 15:41:49 -0700 |
commit | 15472de5eabff7e6e98fc327c6e9015ad6b48a74 (patch) | |
tree | 68d5e9903d4f6760519ae9587403a450578fdac5 | |
parent | 12d0e1515a24d08f6ab970e7321fff0b209ad67a (diff) | |
parent | 1a6379dcb9ad57735ee2f9b647fcb8c2cdbcab24 (diff) | |
download | packages_apps_trebuchet-15472de5eabff7e6e98fc327c6e9015ad6b48a74.zip packages_apps_trebuchet-15472de5eabff7e6e98fc327c6e9015ad6b48a74.tar.gz packages_apps_trebuchet-15472de5eabff7e6e98fc327c6e9015ad6b48a74.tar.bz2 |
Merge "Hotseat: Disable hitsPreviousPage if hotseat is vertical" into cm-10.1
-rw-r--r-- | src/com/cyanogenmod/trebuchet/Hotseat.java | 10 |
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; |