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

Commit 67d43cfe authored by Junda Liu's avatar Junda Liu
Browse files

Add forground flag for retry intent to avoid long delayed cellular data setup.

Bug: b/24151359
Change-Id: I9e0231f1ecb8ddccf5fee3071fc0327568918887
parent 440c27dc
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1456,6 +1456,7 @@ public final class DcTracker extends DcTrackerBase {
        Intent intent = new Intent(INTENT_RECONNECT_ALARM + "." + apnType);
        intent.putExtra(INTENT_RECONNECT_ALARM_EXTRA_REASON, apnContext.getReason());
        intent.putExtra(INTENT_RECONNECT_ALARM_EXTRA_TYPE, apnType);
        intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);

        // Get current sub id.
        int subId = SubscriptionManager.getDefaultDataSubId();