Loading AndroidManifest.xml +1 −1 Original line number Original line Diff line number Diff line Loading @@ -2812,7 +2812,7 @@ <receiver android:name=".sim.SimSelectNotification"> <receiver android:name=".sim.SimSelectNotification"> <intent-filter> <intent-filter> <action android:name="android.intent.action.PRIMARY_SUBSCRIPTION_LIST_CHANGED"/> <action android:name="android.telephony.action.PRIMARY_SUBSCRIPTION_LIST_CHANGED"/> </intent-filter> </intent-filter> </receiver> </receiver> Loading src/com/android/settings/sim/SimSelectNotification.java +4 −0 Original line number Original line Diff line number Diff line Loading @@ -30,6 +30,7 @@ import android.content.Context; import android.content.Intent; import android.content.Intent; import android.content.res.Resources; import android.content.res.Resources; import android.telephony.SubscriptionManager; import android.telephony.SubscriptionManager; import android.telephony.TelephonyManager; import com.android.settings.R; import com.android.settings.R; import com.android.settings.Settings.SimSettingsActivity; import com.android.settings.Settings.SimSettingsActivity; Loading @@ -45,6 +46,9 @@ public class SimSelectNotification extends BroadcastReceiver { @Override @Override public void onReceive(Context context, Intent intent) { public void onReceive(Context context, Intent intent) { if (!TelephonyManager.ACTION_PRIMARY_SUBSCRIPTION_LIST_CHANGED.equals(intent.getAction())) { return; } // Cancel any previous notifications // Cancel any previous notifications cancelNotification(context); cancelNotification(context); // Create a notification to tell the user that some defaults are missing // Create a notification to tell the user that some defaults are missing Loading Loading
AndroidManifest.xml +1 −1 Original line number Original line Diff line number Diff line Loading @@ -2812,7 +2812,7 @@ <receiver android:name=".sim.SimSelectNotification"> <receiver android:name=".sim.SimSelectNotification"> <intent-filter> <intent-filter> <action android:name="android.intent.action.PRIMARY_SUBSCRIPTION_LIST_CHANGED"/> <action android:name="android.telephony.action.PRIMARY_SUBSCRIPTION_LIST_CHANGED"/> </intent-filter> </intent-filter> </receiver> </receiver> Loading
src/com/android/settings/sim/SimSelectNotification.java +4 −0 Original line number Original line Diff line number Diff line Loading @@ -30,6 +30,7 @@ import android.content.Context; import android.content.Intent; import android.content.Intent; import android.content.res.Resources; import android.content.res.Resources; import android.telephony.SubscriptionManager; import android.telephony.SubscriptionManager; import android.telephony.TelephonyManager; import com.android.settings.R; import com.android.settings.R; import com.android.settings.Settings.SimSettingsActivity; import com.android.settings.Settings.SimSettingsActivity; Loading @@ -45,6 +46,9 @@ public class SimSelectNotification extends BroadcastReceiver { @Override @Override public void onReceive(Context context, Intent intent) { public void onReceive(Context context, Intent intent) { if (!TelephonyManager.ACTION_PRIMARY_SUBSCRIPTION_LIST_CHANGED.equals(intent.getAction())) { return; } // Cancel any previous notifications // Cancel any previous notifications cancelNotification(context); cancelNotification(context); // Create a notification to tell the user that some defaults are missing // Create a notification to tell the user that some defaults are missing Loading