[packages/apps/Settings] Settings: fix for Wifi-only project

Do not show sim disable notification for Wifi-only project
This commit is contained in:
Firefly
2015-08-03 14:06:19 +08:00
committed by djw
parent 25759dd434
commit ecf4822626

View File

@ -52,6 +52,9 @@ public class SimBootReceiver extends BroadcastReceiver {
Log.d(TAG, "onReceive " + intent);
String action = intent.getAction();
if (Utils.isWifiOnly(context)) {
return;
}
mTelephonyManager = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
mContext = context;
mSubscriptionManager = SubscriptionManager.from(mContext);