Allow scrolling in landscape
Bug: 156961046 Test: manual - scrolling enabled in landscape, disabled in portrait Change-Id: I6b00213fd21db97e3e2c53f2143c1e3f26c39dc9
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
@@ -70,6 +70,9 @@ public class BubbleOverflowActivity extends Activity {
|
||||
}
|
||||
@Override
|
||||
public boolean canScrollVertically() {
|
||||
if (mBubbleController.inLandscape()) {
|
||||
return super.canScrollVertically();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user