OSDN Git Service

Add a listener for subscription changes to SimDialogFragment
authorAntony Sargent <asargent@google.com>
Wed, 19 Jun 2019 18:30:33 +0000 (11:30 -0700)
committerAntony Sargent <asargent@google.com>
Wed, 19 Jun 2019 19:20:59 +0000 (12:20 -0700)
commit6a1d7e60ac3593ce46c12dab0066a10149ca4aac
tree02e28b10f5de3268a6734888414efb80163ede8a
parent34544681118eb3140d292a9708dfc1291b85ba4d
Add a listener for subscription changes to SimDialogFragment

For some kinds of telephony changes that might happen while we're
already showing one of these dialogs, we already get sent a new intent
for the dialog which we internally convert into a refresh of the dialog
contents instead of stacking a new copy on top of the old one.

But it turns out there are some other cases where the telephony stack
doesn't send a new intent for the dialog but *does* send a change event
through the SubscriptionManager, and we want to respond to those as
well. This CL adds a listener for those events.

Fixes: 135276696
Test: make RunSettingsRoboTests
Change-Id: Ifb93ae95f45fda5831e112306dd9361ccaa5119c
src/com/android/settings/sim/SimDialogFragment.java
tests/robotests/src/com/android/settings/sim/SimListDialogFragmentTest.java