mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 09:56:49 +00:00
Keep banging on the launcher locks up bug. This moves the
delayed zoom stuff into one place, so it should be out of sync less.
This commit is contained in:
@@ -29,6 +29,7 @@ import android.graphics.drawable.Drawable;
|
||||
import android.os.Parcelable;
|
||||
import android.os.Parcel;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.Log;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.VelocityTracker;
|
||||
import android.view.View;
|
||||
@@ -688,7 +689,10 @@ public class Workspace extends ViewGroup implements DropTarget, DragSource, Drag
|
||||
|
||||
@Override
|
||||
public boolean onInterceptTouchEvent(MotionEvent ev) {
|
||||
if (mLauncher.isWorkspaceLocked() || mLauncher.isAllAppsVisible()) {
|
||||
final boolean workspaceLocked = mLauncher.isWorkspaceLocked();
|
||||
final boolean allAppsVisible = mLauncher.isAllAppsVisible();
|
||||
Log.d(TAG, "workspaceLocked=" + workspaceLocked + " allAppsVisible=" + allAppsVisible);
|
||||
if (workspaceLocked || allAppsVisible) {
|
||||
return false; // We don't want the events. Let them fall through to the all apps view.
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user