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

Commit dda7fd4a authored by longyu.huang's avatar longyu.huang Committed by Michael Bestas
Browse files

The DUT can't screen shot in guest mode

RM-208

Change-Id: I6c40f8b5399ed1a8f9d52ddf0ed28266eea8f48c
(cherry picked from commit ad145073)
parent f0897c62
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -745,7 +745,8 @@ class GlobalActions implements DialogInterface.OnDismissListener, DialogInterfac
                @Override
                public void onServiceDisconnected(ComponentName name) {}
            };
            if (mContext.bindService(intent, conn, Context.BIND_AUTO_CREATE)) {
            if (mContext.bindServiceAsUser(
                    intent, conn, Context.BIND_AUTO_CREATE, UserHandle.CURRENT)) {
                mScreenshotConnection = conn;
                mHandler.postDelayed(mScreenshotTimeout, 10000);
            }