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

Commit a635a267 authored by Skuhne's avatar Skuhne
Browse files

Fixing crash in some full screen cases

If an event makes it into the NonClientDecor and the
application is maximized, it should not process it.

Bug: 23489031
Change-Id: I661ea207522bbea64f297cd63cc2b5da192d47ae
parent e3e7b523
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -124,6 +124,10 @@ public class NonClientDecorView extends LinearLayout implements View.OnClickList
        // input device we are listening to.
        switch (e.getActionMasked()) {
            case MotionEvent.ACTION_DOWN:
                if (!mShowDecor) {
                    // When there is no decor we should not react to anything.
                    return false;
                }
                // A drag action is started if we aren't dragging already and the starting event is
                // either a left mouse button or any other input device.
                if (!mDragging &&