summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLyubo <lyubodzhamov@gmail.com>2019-04-12 17:51:17 -0400
committerNolen Johnson <johnsonnolen@gmail.com>2019-04-20 02:18:19 +0200
commit4008a89a772db78a808cc8636d05ebcf2751fedc (patch)
tree585e9944f4e527d897486c5c6febcdeda11cdb14
parent36bb450849b5871e0232e58f8719fbd439600e81 (diff)
downloadandroid_packages_apps_Trebuchet-4008a89a772db78a808cc8636d05ebcf2751fedc.tar.gz
android_packages_apps_Trebuchet-4008a89a772db78a808cc8636d05ebcf2751fedc.tar.bz2
android_packages_apps_Trebuchet-4008a89a772db78a808cc8636d05ebcf2751fedc.zip
Trebuchet: Disallow status bar swipe on widgets sheet
* Fixes: https://gitlab.com/LineageOS/issues/android/issues/372. * Status bar swipe feature interferes with scrolling there are enough widgets to scroll through. If there aren't enough widgets to scroll through, the swipe down will close the widgets sheet, so there is no use for this feature here. Change-Id: Icecf1f0f8d093a2f5c61d1a0ce7975cbc98cf2a2
-rw-r--r--src/com/android/launcher3/widget/WidgetsFullSheet.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/launcher3/widget/WidgetsFullSheet.java b/src/com/android/launcher3/widget/WidgetsFullSheet.java
index e94d81d75..489d5860c 100644
--- a/src/com/android/launcher3/widget/WidgetsFullSheet.java
+++ b/src/com/android/launcher3/widget/WidgetsFullSheet.java
@@ -196,7 +196,8 @@ public class WidgetsFullSheet extends BaseWidgetSheet
@Override
protected boolean isOfType(int type) {
- return (type & TYPE_WIDGETS_FULL_SHEET) != 0;
+ return (type & TYPE_WIDGETS_FULL_SHEET) != 0 ||
+ (type & TYPE_STATUS_BAR_SWIPE_DOWN_DISALLOW) != 0;
}
@Override