Merge "Start using CarrierConfig for 4G/LTE icon"
This commit is contained in:
@@ -338,14 +338,10 @@ public class SimStatusDialogController implements LifecycleObserver, OnResume, O
|
|||||||
}
|
}
|
||||||
|
|
||||||
boolean show4GForLTE = false;
|
boolean show4GForLTE = false;
|
||||||
try {
|
final PersistableBundle carrierConfig = mCarrierConfigManager.getConfigForSubId(subId);
|
||||||
final Context con = mContext.createPackageContext(
|
if (carrierConfig != null) {
|
||||||
"com.android.systemui", 0 /* flags */);
|
show4GForLTE = carrierConfig.getBoolean(
|
||||||
final int id = con.getResources().getIdentifier("config_show4GForLTE",
|
CarrierConfigManager.KEY_SHOW_4G_FOR_LTE_DATA_ICON_BOOL);
|
||||||
"bool" /* default type */, "com.android.systemui" /* default package */);
|
|
||||||
show4GForLTE = con.getResources().getBoolean(id);
|
|
||||||
} catch (PackageManager.NameNotFoundException e) {
|
|
||||||
Log.e(TAG, "NameNotFoundException for show4GForLTE");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (show4GForLTE) {
|
if (show4GForLTE) {
|
||||||
|
Reference in New Issue
Block a user