Loading src/java/com/android/internal/telephony/Phone.java +2 −4 Original line number Original line Diff line number Diff line Loading @@ -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 Loading @@ -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()); } } } } Loading Loading
src/java/com/android/internal/telephony/Phone.java +2 −4 Original line number Original line Diff line number Diff line Loading @@ -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 Loading @@ -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()); } } } } Loading