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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user