Merge "Do not ask for rotation lock when controlling quickscrub from launcher activtiy" into ub-launcher3-master
This commit is contained in:
committed by
Android (Google) Code Review
commit
64d5f27f03
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user