Allow scrolling in landscape

Bug: 156961046
Test: manual - scrolling enabled in landscape, disabled in portrait
Change-Id: I6b00213fd21db97e3e2c53f2143c1e3f26c39dc9
This commit is contained in:
Lyn Han
2020-05-20 20:05:23 -07:00
parent 7f42b75525
commit 79c7813fbd
2 changed files with 7 additions and 0 deletions

View File

@@ -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.
*/

View File

@@ -70,6 +70,9 @@ public class BubbleOverflowActivity extends Activity {
}
@Override
public boolean canScrollVertically() {
if (mBubbleController.inLandscape()) {
return super.canScrollVertically();
}
return false;
}
}