OSDN Git Service

Make taps on subscriptions in multi-network header go to mobile page
authorAntony Sargent <asargent@google.com>
Mon, 17 Dec 2018 23:23:44 +0000 (15:23 -0800)
committerAntony Sargent <asargent@google.com>
Thu, 20 Dec 2018 17:03:34 +0000 (09:03 -0800)
commit8e57fedc95f1ba29c32005115286b6fbb5a37111
tree6726fdb9b92ba3c9f5c0e725419cbde0d5029f5c
parent74cb72433a5b13601f437f981c769f2766914545
Make taps on subscriptions in multi-network header go to mobile page

This CL does 2 things:

-Makes the MobileNetworkActivity class capable of showing details for
 "available" in addition to just "active" networks. This is useful for
 dual-standby devices where one subscription is active and another is
 registered but not currently active. It also changes the title of this
 screen to be the network display name (defaults to the carrier name
 but can be customized by the user) instead of the generic "Mobile
 network".

-Wires up the subscription entries in the multi-network header (which
 only appears when a device has multiple subscriptions) so that taps on
 a subscription preference bring you to the MobileNetworkActivity screen
 to show details for that network.

Bug: 116349402
Test: make RunSettingsRoboTests
Change-Id: I0e985652c1d8ec3c597b6b6e4426d222e2ad5352
res/xml/mobile_network_settings.xml
src/com/android/settings/network/SubscriptionsPreferenceController.java
src/com/android/settings/network/telephony/MobileNetworkActivity.java
tests/robotests/src/com/android/settings/network/SubscriptionsPreferenceControllerTest.java
tests/robotests/src/com/android/settings/network/telephony/MobileNetworkActivityTest.java