Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3d2fc57a authored by Matthew Fritze's avatar Matthew Fritze
Browse files

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
parent 4158a67a
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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;
    }
}