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

Commit 966be254 authored by Fan Zhang's avatar Fan Zhang
Browse files

Remove placeholder summary text in auto-rotate preference

- Remove the %s from xml and set it in code instead.
- This is hack to make search stop display %s. It's fixed properly in
  master but we don't want to cherry-pick the master change because of its
  size and risk.

Bug: 36101902
Test: rerun robotests
Change-Id: I0e03957532b265c15d5cc0754396aea26e5cd8a1
Merged-In: If42cceb74296814311eb0eff8e26b4a48a1c4d29
parent 014ff46f
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.