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

Commit c9788774 authored by Danielle Millett's avatar Danielle Millett Committed by Android (Google) Code Review
Browse files

Merge "Fix 6238404: Changed deleteGallery and deleteTempGallery to use broadcasts"

parents bbd0df09 574e49ee
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -438,10 +438,9 @@ public class LockPatternUtils {
     * Calls back SetupFaceLock to delete the temporary gallery file
     */
    public void deleteTempGallery() {
        Intent intent = new Intent().setClassName("com.android.facelock",
                "com.android.facelock.SetupFaceLock");
        Intent intent = new Intent().setAction("com.android.facelock.DELETE_GALLERY");
        intent.putExtra("deleteTempGallery", true);
        mContext.startActivity(intent);
        mContext.sendBroadcast(intent);
    }

    /**
@@ -449,10 +448,9 @@ public class LockPatternUtils {
    */
    void deleteGallery() {
        if(usingBiometricWeak()) {
            Intent intent = new Intent().setClassName("com.android.facelock",
                    "com.android.facelock.SetupFaceLock");
            Intent intent = new Intent().setAction("com.android.facelock.DELETE_GALLERY");
            intent.putExtra("deleteGallery", true);
            mContext.startActivity(intent);
            mContext.sendBroadcast(intent);
        }
    }