File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
policy/src/com/android/internal/policy/impl Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 3434import android .widget .*;
3535import android .util .Log ;
3636import android .media .AudioManager ;
37+ import android .provider .MediaStore ;
3738import android .provider .Settings ;
3839
3940import java .io .File ;
@@ -225,9 +226,10 @@ public void onTrigger(View v, int target) {
225226 mCallback .goToUnlockScreen ();
226227 } else if (target == 2 || target == 3 ) { // 2 = alt/portrait, 3 = alt/landscape
227228 if (!mCameraDisabled ) {
228- // Broadcast an intent to start the Camera
229- Intent intent = new Intent (Intent .ACTION_CAMERA_BUTTON , null );
230- mContext .sendOrderedBroadcast (intent , null );
229+ // Start the Camera
230+ Intent intent = new Intent (MediaStore .INTENT_ACTION_STILL_IMAGE_CAMERA );
231+ intent .setFlags (Intent .FLAG_ACTIVITY_NEW_TASK );
232+ mContext .startActivity (intent );
231233 mCallback .goToUnlockScreen ();
232234 } else {
233235 toggleRingMode ();
You can’t perform that action at this time.
0 commit comments