diff options
| author | 2020-05-20 20:05:23 -0700 | |
|---|---|---|
| committer | 2020-05-20 20:05:23 -0700 | |
| commit | 79c7813fbda100aed3ec2b31dc48b3194ddce1c5 (patch) | |
| tree | f3da824e3988874a4942528c60f628511b884223 | |
| parent | 7f42b75525e2c4b7fb3a493ff57e34e4a1edd5a5 (diff) | |
Allow scrolling in landscape
Bug: 156961046
Test: manual - scrolling enabled in landscape, disabled in portrait
Change-Id: I6b00213fd21db97e3e2c53f2143c1e3f26c39dc9
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/bubbles/BubbleController.java | 4 | ||||
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/bubbles/BubbleOverflowActivity.java | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/bubbles/BubbleController.java b/packages/SystemUI/src/com/android/systemui/bubbles/BubbleController.java index a578f337cca2..0056796c972c 100644 --- a/packages/SystemUI/src/com/android/systemui/bubbles/BubbleController.java +++ b/packages/SystemUI/src/com/android/systemui/bubbles/BubbleController.java @@ -723,6 +723,10 @@ public class BubbleController implements ConfigurationController.ConfigurationLi } } + boolean inLandscape() { + return mOrientation == Configuration.ORIENTATION_LANDSCAPE; + } + /** * Set a listener to be notified of bubble expand events. */ diff --git a/packages/SystemUI/src/com/android/systemui/bubbles/BubbleOverflowActivity.java b/packages/SystemUI/src/com/android/systemui/bubbles/BubbleOverflowActivity.java index 08ec789bba6a..61e8ecfb3625 100644 --- a/packages/SystemUI/src/com/android/systemui/bubbles/BubbleOverflowActivity.java +++ b/packages/SystemUI/src/com/android/systemui/bubbles/BubbleOverflowActivity.java @@ -70,6 +70,9 @@ public class BubbleOverflowActivity extends Activity { } @Override public boolean canScrollVertically() { + if (mBubbleController.inLandscape()) { + return super.canScrollVertically(); + } return false; } } |