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

Commit ce7f36c7 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Remove placeholder summary text in auto-rotate preference" into oc-dev

parents 6c0f337d 966be254
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -59,7 +59,7 @@

    <DropDownPreference
        android:key="auto_rotate"
        android:summary="%s"
        android:summary="@string/summary_placeholder"
        android:title="@string/display_auto_rotate_title" />

    <Preference
+1 −0
Original line number Diff line number Diff line
@@ -45,6 +45,7 @@ public class AutoRotatePreferenceController extends PreferenceController impleme
    public void updateState(Preference preference) {
        final DropDownPreference rotatePreference = (DropDownPreference) preference;
        final int rotateLockedResourceId;
        preference.setSummary("%s");
        // The following block sets the string used when rotation is locked.
        // If the device locks specifically to portrait or landscape (rather than current
        // rotation), then we use a different string to include this information.