OSDN Git Service

Add subscriptions list to the multi-network header
authorAntony Sargent <asargent@google.com>
Wed, 12 Dec 2018 17:09:45 +0000 (09:09 -0800)
committerAntony Sargent <asargent@google.com>
Mon, 17 Dec 2018 21:26:13 +0000 (13:26 -0800)
commite92e07eb97eba0f99e5fc46a26587ba796d9acdb
tree9fdb32d6a8efe70ee88859beec65c1c8bf1e5b20
parent3f5966bb483b8db8e1c3e2d476edca7482ecf72b
Add subscriptions list to the multi-network header

The new UX for showing multiple active mobile plan subscriptions (SIMs,
eSIMs, etc.)  needs a header at the top of the Network & internet page
that shows wifi status and a list of active mobile subscriptions in the
form of one Preference per subscription.

This CL adds display of the mobile subscriptions to this header. It does
not yet show the correct summary text or do anything when you tap on
them - that will be coming in subsequent CLs. Also, since adding a
variable number of items to the top of the page messes up our current
strategy of having a fixed number of hidden items at the bottom based on
overall item count, this CL just makes all items visible. Subsequent CLs
can restore this behavior with dynamic adjustment.

Bug: 116349402
Test: make RunSettingsRoboTests
Change-Id: Ibfadf8cb61f6f5aff6ce38b7974267b1e4ddc719
res/xml/network_and_internet_v2.xml
src/com/android/settings/network/MultiNetworkHeaderController.java
src/com/android/settings/network/NetworkDashboardFragment.java
src/com/android/settings/network/SubscriptionUtil.java
src/com/android/settings/network/SubscriptionsPreferenceController.java [new file with mode: 0644]
tests/robotests/src/com/android/settings/network/MultiNetworkHeaderControllerTest.java [new file with mode: 0644]
tests/robotests/src/com/android/settings/network/SubscriptionsPreferenceControllerTest.java [new file with mode: 0644]