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
This commit is contained in:
Fan Zhang
2017-05-08 13:15:58 -07:00
parent 014ff46fa6
commit 966be254ab
2 changed files with 2 additions and 1 deletions

View File

@@ -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.