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

Commit e4e63765 authored by Daniel Bright's avatar Daniel Bright Committed by Gerrit Code Review
Browse files

Merge "Secret code fix - remove bground flag"

parents b9792c2d b8e4bbe7
Loading
Loading
Loading
Loading
+2 −4
Original line number Original line Diff line number Diff line
@@ -2655,8 +2655,7 @@ public abstract class Phone extends Handler implements PhoneInternalInterface {
            options.setBackgroundActivityStartsAllowed(true);
            options.setBackgroundActivityStartsAllowed(true);
            Intent intent = new Intent(TelephonyIntents.SECRET_CODE_ACTION,
            Intent intent = new Intent(TelephonyIntents.SECRET_CODE_ACTION,
                    Uri.parse("android_secret_code://" + code));
                    Uri.parse("android_secret_code://" + code));
            intent.addFlags(
            intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
                    Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND | Intent.FLAG_RECEIVER_FOREGROUND);
            mContext.sendBroadcast(intent, null, options.toBundle());
            mContext.sendBroadcast(intent, null, options.toBundle());


            // {@link TelephonyManager.ACTION_SECRET_CODE} will replace {@link
            // {@link TelephonyManager.ACTION_SECRET_CODE} will replace {@link
@@ -2664,8 +2663,7 @@ public abstract class Phone extends Handler implements PhoneInternalInterface {
            // that both of these two actions will be broadcast.
            // that both of these two actions will be broadcast.
            Intent secrectCodeIntent = new Intent(TelephonyManager.ACTION_SECRET_CODE,
            Intent secrectCodeIntent = new Intent(TelephonyManager.ACTION_SECRET_CODE,
                    Uri.parse("android_secret_code://" + code));
                    Uri.parse("android_secret_code://" + code));
            secrectCodeIntent.addFlags(
            secrectCodeIntent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
                    Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND | Intent.FLAG_RECEIVER_FOREGROUND);
            mContext.sendBroadcast(secrectCodeIntent, null, options.toBundle());
            mContext.sendBroadcast(secrectCodeIntent, null, options.toBundle());
        }
        }
    }
    }