From 1a6379dcb9ad57735ee2f9b647fcb8c2cdbcab24 Mon Sep 17 00:00:00 2001 From: Nebojsa Cvetkovic Date: Sun, 21 Jul 2013 00:40:26 +0200 Subject: Hotseat: Disable hitsPreviousPage if hotseat is vertical Change-Id: I224b345fb1196602111c2209d134093e2dfee891 --- src/com/cyanogenmod/trebuchet/Hotseat.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/com/cyanogenmod/trebuchet/Hotseat.java b/src/com/cyanogenmod/trebuchet/Hotseat.java index d5fd0ecc2..adf6e9de8 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; -- cgit v1.2.3