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

Commit 6fbaff8c authored by Michael W's avatar Michael W
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 961e453e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -106,6 +106,7 @@ public class LauncherAppWidgetHostView extends NavigableAppWidgetHostView

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