Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 79c7813f authored by Lyn Han's avatar Lyn Han
Browse files

Allow scrolling in landscape

Bug: 156961046
Test: manual - scrolling enabled in landscape, disabled in portrait
Change-Id: I6b00213fd21db97e3e2c53f2143c1e3f26c39dc9
parent 7f42b755
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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.
     */
+3 −0
Original line number Diff line number Diff line
@@ -70,6 +70,9 @@ public class BubbleOverflowActivity extends Activity {
        }
        @Override
        public boolean canScrollVertically() {
            if (mBubbleController.inLandscape()) {
                return super.canScrollVertically();
            }
            return false;
        }
    }