Handle blacklisted apps on Data Saver whitelist.

When user blacklists an app for background data access, the
"Unrestricted data access" list should not display the whitelist toggle
option, but rather explain background access is turned off and offer the
option to open the app's data usage screen to turn it back on.

It still does not handle changed received by DataSaverBackend, so the UI
will be stale when the user removes a blacklist and navigates back to
the list.

BUG: 27481520

Change-Id: I9d0fa9f0180a69ce9bd1417921bf89ec3ba31f01
This commit is contained in:
Felipe Leme
2016-04-14 17:53:07 -07:00
parent bd068163e3
commit c2ef27faf4
7 changed files with 108 additions and 32 deletions

View File

@@ -70,6 +70,7 @@ public class DataSaverSummary extends SettingsPreferenceFragment
public void onResume() {
super.onResume();
mDataSaverBackend.refreshWhitelist();
mDataSaverBackend.refreshBlacklist();
mDataSaverBackend.addListener(this);
mSession.resume();
mDataUsageBridge.resume();