Convert EncryptionAndCredential into DashboardFragment

The logic still lives in fragment for now. They will be moved into
PrefControllers in follow-up changes.

Bug: 32953042
Test: RoboTests
Change-Id: I2b03d26b5f4e6bbb37b42f9dc83a9464eb169868
This commit is contained in:
Fan Zhang
2017-10-31 14:27:18 -07:00
parent f60c99af53
commit 9679dba668
5 changed files with 26 additions and 15 deletions

View File

@@ -183,6 +183,9 @@ public abstract class DashboardFragment extends SettingsPreferenceFragment
}
}
@Override
protected abstract int getPreferenceScreenResId();
protected <T extends AbstractPreferenceController> T getPreferenceController(Class<T> clazz) {
AbstractPreferenceController controller = mPreferenceControllers.get(clazz);
return (T) controller;