Merge "Fix Calls/SMS default SIM selector" into qt-dev

am: 7af299c604

Change-Id: I35b3e57d151b6d20e5b088a7d6269490317644e5
This commit is contained in:
Antony Sargent
2019-06-13 16:48:19 -07:00
committed by android-build-merger
2 changed files with 27 additions and 0 deletions

View File

@@ -121,6 +121,11 @@ public abstract class DefaultSubscriptionController extends BasePreferenceContro
}
mPreference.setVisible(true);
// TODO(b/135142209) - for now we need to manually ensure we're registered as a change
// listener, because this might not have happened during displayPreference if
// getAvailabilityStatus returned CONDITIONALLY_UNAVAILABLE at the time.
mPreference.setOnPreferenceChangeListener(this);
final List<SubscriptionInfo> subs = SubscriptionUtil.getActiveSubscriptions(mManager);
// We'll have one entry for each available subscription, plus one for a "ask me every