OSDN Git Service

Make RadioInfo settings menu work for mSIM
authorJordan Liu <jminjie@google.com>
Tue, 2 Apr 2019 19:13:31 +0000 (12:13 -0700)
committerJordan Liu <jminjie@google.com>
Fri, 12 Apr 2019 22:00:05 +0000 (15:00 -0700)
commit85f1d2a70497c649269842e0be83592f8d7c0109
tree9d96219fdfd955a7e22499465e50db0adb9564b1
parent76ffb2df0250fc737b2c24fd13474fbf83a20103
Make RadioInfo settings menu work for mSIM

Just add a spinner to the top of the screen which lets you select the
phoneIndex. Upating this value updates the mTelephonyManager
mImsManager, and mPhoneStateListener to use the selected phoneIndex and
the subscription associated with it.

Also adds fields for current subId and default data sim subId.

Due to b/117555407, the same PhoneStateListener object can not be used
to register on different subIds, so we workaround this by recreating
the PhoneStateListener when reregistering.

Test: manual test (on single sim)
Fixes: 128033739
Change-Id: I9d6631da628351511e285afeb5b6d4331aaab7e5
Merged-In: I9d6631da628351511e285afeb5b6d4331aaab7e5
res/layout/radio_info.xml
res/values/strings.xml
src/com/android/settings/RadioInfo.java