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

Commit 24f37552 authored by Michael W's avatar Michael W
Browse files

GlobalActions: Don't timeout a partial screenshot

* A partial screenshot shouldn't timeout when the user might still be
  adjusting the rectangle
* This also fixes an issue, when views were removed from WindowManager
  multiple times, resulting in a crash

BUGBASH-1500

Change-Id: I5916545e9293717a96ecf191c9fb20db536cc730
parent 2814bfbe
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -858,10 +858,12 @@ class GlobalActions implements DialogInterface.OnDismissListener, DialogInterfac
            if (mContext.bindServiceAsUser(
                    intent, conn, Context.BIND_AUTO_CREATE, UserHandle.CURRENT)) {
                mScreenshotConnection = conn;
                if (!partial) {
                    mHandler.postDelayed(mScreenshotTimeout, 10000);
                }
            }
        }
    }

    private void prepareDialog() {
        refreshSilentMode();