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

Commit e5cddac3 authored by Roman Birg's avatar Roman Birg Committed by Stephen Bird
Browse files

Buttons: Launch camera activity instead of BroadcastReceiver

Change-Id: Iba16204af697bdf4644fed013ee170f64f88046d
parent 8cba8aff
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -1444,9 +1444,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {

    private void launchCameraAction() {
        sendCloseSystemWindows();
        Intent intent = new Intent(Intent.ACTION_CAMERA_BUTTON, null);
        mContext.sendOrderedBroadcastAsUser(intent, UserHandle.CURRENT_OR_SELF,
                null, null, null, 0, null, null);
        Intent intent = new Intent(MediaStore.INTENT_ACTION_STILL_IMAGE_CAMERA);
        startActivityAsUser(intent, UserHandle.CURRENT_OR_SELF);
    }

    private void performKeyAction(int behavior) {