Merge "Add new method refreshSummary(Preference)" into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
0da4fbe5f4
@@ -37,6 +37,13 @@ public abstract class AbstractPreferenceController {
|
|||||||
* Updates the current status of preference (summary, switch state, etc)
|
* Updates the current status of preference (summary, switch state, etc)
|
||||||
*/
|
*/
|
||||||
public void updateState(Preference preference) {
|
public void updateState(Preference preference) {
|
||||||
|
refreshSummary(preference);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Refresh preference summary with getSummary()
|
||||||
|
*/
|
||||||
|
protected void refreshSummary(Preference preference) {
|
||||||
if (preference == null) {
|
if (preference == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user