Add more preference controllers to network page.

- To support Mobile plan preference controller, extended
  LifecycleObserver pattern to also observe onCreate and onSaveInstance.

Bug: 31799836
Test: RunSettingsRoboTests
Change-Id: Ie98db7efa91f0a8b4c8a06a784d3351237e59fe0
This commit is contained in:
Fan Zhang
2016-10-13 09:53:38 -07:00
parent fdca235dc5
commit f1acdd3a51
14 changed files with 698 additions and 235 deletions

View File

@@ -443,7 +443,7 @@ public class WifiCallingSettings extends SettingsPreferenceFragment
return true;
}
static int getWfcModeSummary(Context context, int wfcMode) {
public static int getWfcModeSummary(Context context, int wfcMode) {
int resId = com.android.internal.R.string.wifi_calling_off_summary;
if (ImsManager.isWfcEnabledByUser(context)) {
switch (wfcMode) {