Skip to content

Commit a4bc82a

Browse files
author
Robert Greenwalt
committed
Initialize Hipri correctly.
The old code was dependent on the order of things in config.xml. This fixes that so hipri will get the correct dependency-met value at startup. Good ITS test. bug:5382518 Change-Id: Ie327ab1abbc5697ffab0ed4d8c9d6de321513adb
1 parent 11116b8 commit a4bc82a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,14 @@ protected void initApnContextsAndDataConnection() {
273273
break;
274274
case ConnectivityManager.TYPE_MOBILE_HIPRI:
275275
apnContext = addApnContext(Phone.APN_TYPE_HIPRI);
276-
break;
276+
ApnContext defaultContext = mApnContexts.get(Phone.APN_TYPE_DEFAULT);
277+
if (defaultContext != null) {
278+
applyNewState(apnContext, apnContext.isEnabled(),
279+
defaultContext.getDependencyMet());
280+
} else {
281+
// the default will set the hipri dep-met when it is created
282+
}
283+
continue;
277284
case ConnectivityManager.TYPE_MOBILE_FOTA:
278285
apnContext = addApnContext(Phone.APN_TYPE_FOTA);
279286
break;

0 commit comments

Comments
 (0)