OSDN Git Service

Fix 'Advanced' collapse point on Network & internet page
authorAntony Sargent <asargent@google.com>
Thu, 4 Apr 2019 17:10:31 +0000 (10:10 -0700)
committerAntony Sargent <asargent@google.com>
Thu, 4 Apr 2019 17:21:24 +0000 (10:21 -0700)
commit24aa3b35046549dc672e5d52ae11ee2a3b6be057
tree774ced5648647b927d9e177d4bdf57d15f063a38
parent44427259e8206d4e66ac2f268a755450a7613c94
Fix 'Advanced' collapse point on Network & internet page

On the Network & internet page, we want to collapse all the prefs into
'Advanced' that appear after 'Data Saver'. The mechanism for specifying
where the collapse point starts is just a static count, and it doesn't
really understand the concept of dynamically added preferences like the
ones we add at the top when the device is in DSDS mode. To fix this in
the short term, this CL makes the header that manages these prefs
manually adjust the count as needed. In the future we'd like to have a
better mechanism for this added in the support library.

Fixes: 128855968
Test: make RunSettingsRoboTests
Change-Id: I4509726ff29bc71e1f0b3d4a2f60dffe4b1dd7ac
res/xml/network_and_internet_v2.xml
src/com/android/settings/network/MultiNetworkHeaderController.java
src/com/android/settings/network/SubscriptionsPreferenceController.java
tests/robotests/src/com/android/settings/network/MultiNetworkHeaderControllerTest.java
tests/robotests/src/com/android/settings/network/SubscriptionsPreferenceControllerTest.java