Merge "Do not ask for rotation lock when controlling quickscrub from launcher activtiy" into ub-launcher3-master

This commit is contained in:
TreeHugger Robot
2018-09-11 17:25:44 +00:00
committed by Android (Google) Code Review
@@ -161,9 +161,11 @@ public interface ActivityControlHelper<T extends BaseDraggingActivity> {
.getQuickScrubController();
controller.onQuickScrubStart(activityVisible && !fromState.overviewUi, this);
// For the duration of the gesture, lock the screen orientation to ensure that we do not
// rotate mid-quickscrub
activity.getRotationHelper().setStateHandlerRequest(REQUEST_LOCK);
if (!activityVisible) {
// For the duration of the gesture, lock the screen orientation to ensure that we
// do not rotate mid-quickscrub
activity.getRotationHelper().setStateHandlerRequest(REQUEST_LOCK);
}
}
@Override