Add getSummaryMethod to AbstractPreferenceController

We want a dedicated getSummay method, as summary text
is a fairly important part of the preference framework.

Specifically for preferences with dynamic summaries, having a
method to provide summaries for Slices, and in the future, search
is necessary for correctness.

Change-Id: I435ccab7758d90515583fd8ca10a9b1ef0c858b9
Bug: 71514936
Test: make -j40 RunSettingsRoboTests
This commit is contained in:
Matthew Fritze
2018-01-03 16:51:49 -08:00
parent 4158a67a32
commit 3d2fc57a54

View File

@@ -69,4 +69,12 @@ public abstract class AbstractPreferenceController {
pref.setVisible(isVisible);
}
}
/**
* @return a String for the summary of the preference.
*/
public String getSummary() {
return null;
}
}