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

Commit 93ce075d authored by Dan Pasanen's avatar Dan Pasanen Committed by Jorge Ruesga
Browse files

CameraTile: Launch default gallery app when long pressing active camera tile

Currently long pressing this does nothing. It makes sense to launch the default
gallery app from here if a user long presses in order to see pictures that
they've taken from the smaller camera preview.

Change-Id: Iad73a291443eb2a12e1399f24eeeec61ec945bf5
parent d74d1b36
Loading
Loading
Loading
Loading
+14 −4
Original line number Diff line number Diff line
@@ -269,12 +269,22 @@ public class CameraTile extends QuickSettingsTile {
        mOnLongClick = new View.OnLongClickListener() {
            @Override
            public boolean onLongClick(View v) {
                final Intent intent = new Intent();
                if (mCamera != null) {
                    return false;
                }
                    intent.setAction(Intent.ACTION_VIEW);
                    intent.setType("image/*");

                Intent intent = new Intent(MediaStore.INTENT_ACTION_STILL_IMAGE_CAMERA);
                    mHandler.post(mReleaseCameraRunnable);
                    mHandler.postDelayed(new Runnable() {
                        @Override
                        public void run() {
                            startSettingsActivity(intent);
                        }
                    }, 150);
                } else {
                    intent.setAction(MediaStore.INTENT_ACTION_STILL_IMAGE_CAMERA);
                    startSettingsActivity(intent);
                }
                return true;
            }
        };