Merge "Add null check for input receiver before updating batching" into ub-launcher3-master
This commit is contained in:
committed by
Android (Google) Code Review
commit
679d920bf5
@@ -732,8 +732,11 @@ public class TouchInteractionService extends Service implements PluginListener<O
|
||||
private void reset() {
|
||||
mConsumer = mUncheckedConsumer = mResetGestureInputConsumer;
|
||||
mGestureState = DEFAULT_STATE;
|
||||
// By default, use batching of the input events
|
||||
mInputEventReceiver.setBatchingEnabled(true);
|
||||
// By default, use batching of the input events, but check receiver before using in the rare
|
||||
// case that the monitor was disposed before the swipe settled
|
||||
if (mInputEventReceiver != null) {
|
||||
mInputEventReceiver.setBatchingEnabled(true);
|
||||
}
|
||||
}
|
||||
|
||||
private void preloadOverview(boolean fromInit) {
|
||||
|
||||
Reference in New Issue
Block a user