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

Commit 9af36516 authored by Michal Karpinski's avatar Michal Karpinski
Browse files

Rename BroadcastOptions.setAllowBackgroundActivityStarts() to

setBackgroundActivityStartsAllowed()

Per the feedback from the API council.

Bug: 127465469
Test: make -j update-api && make -j
Change-Id: Ia272897ca008ae30cc2709d08af7f77cad11e932
parent 8db15d91
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2440,7 +2440,7 @@ public abstract class Phone extends Handler implements PhoneInternalInterface {
    public void sendDialerSpecialCode(String code) {
        if (!TextUtils.isEmpty(code)) {
            final BroadcastOptions options = BroadcastOptions.makeBasic();
            options.setAllowBackgroundActivityStarts(true);
            options.setBackgroundActivityStartsAllowed(true);
            Intent intent = new Intent(TelephonyIntents.SECRET_CODE_ACTION,
                    Uri.parse("android_secret_code://" + code));
            intent.addFlags(Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND);
+1 −1
Original line number Diff line number Diff line
@@ -824,7 +824,7 @@ public class UiccController extends Handler {

        // broadcast slot status changed
        final BroadcastOptions options = BroadcastOptions.makeBasic();
        options.setAllowBackgroundActivityStarts(true);
        options.setBackgroundActivityStartsAllowed(true);
        Intent intent = new Intent(TelephonyManager.ACTION_SIM_SLOT_STATUS_CHANGED);
        intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT);
        intent.addFlags(Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND);