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

Commit 26402ea9 authored by Mark Renouf's avatar Mark Renouf
Browse files

Correctly identify screenshot from a11y service

Switches a constant to correctly identify the source

Test: self explanatory
Bug: 177675113
Change-Id: I562d3e9334333d5d514b7aea801e4116b0c38062
parent 316dbd3b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@

package com.android.systemui.accessibility;

import static android.view.WindowManager.ScreenshotSource.SCREENSHOT_GLOBAL_ACTIONS;
import static android.view.WindowManager.ScreenshotSource.SCREENSHOT_ACCESSIBILITY_ACTIONS;

import static com.android.internal.accessibility.common.ShortcutConstants.CHOOSER_PACKAGE_NAME;

@@ -349,7 +349,7 @@ public class SystemActions extends SystemUI {
    private void handleTakeScreenshot() {
        ScreenshotHelper screenshotHelper = new ScreenshotHelper(mContext);
        screenshotHelper.takeScreenshot(WindowManager.TAKE_SCREENSHOT_FULLSCREEN, true, true,
                SCREENSHOT_GLOBAL_ACTIONS, new Handler(Looper.getMainLooper()), null);
                SCREENSHOT_ACCESSIBILITY_ACTIONS, new Handler(Looper.getMainLooper()), null);
    }

    private void handleAccessibilityButton() {