Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 7868f5d9 authored by Michael W's avatar Michael W Committed by Michael Bestas
Browse files

Trebuchet: Don't show move layer when editing isn't allowed

* When long clicking a widget, it behaves like you could move it just
  to immediately return to default state when moving the finger
* Just don't react to long pressing a widget when editing is disallowed

Change-Id: If5d8558c6311b569c7b21e8b4b6598f0dbdd3319
parent ff6298e4
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -122,6 +122,7 @@ public class LauncherAppWidgetHostView extends BaseLauncherAppWidgetHostView

    @Override
    public boolean onLongClick(View view) {
        if (!Utilities.isWorkspaceEditAllowed(mLauncher.getApplicationContext())) return true;
        if (mIsScrollable) {
            DragLayer dragLayer = mLauncher.getDragLayer();
            dragLayer.requestDisallowInterceptTouchEvent(false);