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

Commit b6c2ea94 authored by Romain Hunault's avatar Romain Hunault 💻
Browse files

Merge remote-tracking branch 'origin/cm-14.1' into v1-nougat

parents 1103b331 08693931
Loading
Loading
Loading
Loading
+12 −10
Original line number Diff line number Diff line
@@ -642,8 +642,7 @@ class GlobalScreenshot {
                        view.setVisibility(View.GONE);
                        mWindowManager.removeView(mScreenshotSelectorLayout);
                        final Rect rect = view.getSelectionRect();
                        if (rect != null) {
                            if (rect.width() != 0 && rect.height() != 0) {
                        if (rect != null && rect.width() != 0 && rect.height() != 0) {
                            // Need mScreenshotSelectorLayout to handle it after the view disappears
                            mScreenshotSelectorLayout.post(new Runnable() {
                                public void run() {
@@ -651,7 +650,10 @@ class GlobalScreenshot {
                                            rect.left, rect.top, rect.width(), rect.height());
                                }
                            });
                            }
                        } else {
                            // Clean up if nothing is selected
                            // to initialize a new screenshot later
                            finisher.run();
                        }

                        view.stopSelection();