Merge "Remove placeholder summary text in auto-rotate preference" into oc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
ce7f36c799
@@ -59,7 +59,7 @@
|
|||||||
|
|
||||||
<DropDownPreference
|
<DropDownPreference
|
||||||
android:key="auto_rotate"
|
android:key="auto_rotate"
|
||||||
android:summary="%s"
|
android:summary="@string/summary_placeholder"
|
||||||
android:title="@string/display_auto_rotate_title" />
|
android:title="@string/display_auto_rotate_title" />
|
||||||
|
|
||||||
<Preference
|
<Preference
|
||||||
|
@@ -45,6 +45,7 @@ public class AutoRotatePreferenceController extends PreferenceController impleme
|
|||||||
public void updateState(Preference preference) {
|
public void updateState(Preference preference) {
|
||||||
final DropDownPreference rotatePreference = (DropDownPreference) preference;
|
final DropDownPreference rotatePreference = (DropDownPreference) preference;
|
||||||
final int rotateLockedResourceId;
|
final int rotateLockedResourceId;
|
||||||
|
preference.setSummary("%s");
|
||||||
// The following block sets the string used when rotation is locked.
|
// The following block sets the string used when rotation is locked.
|
||||||
// If the device locks specifically to portrait or landscape (rather than current
|
// If the device locks specifically to portrait or landscape (rather than current
|
||||||
// rotation), then we use a different string to include this information.
|
// rotation), then we use a different string to include this information.
|
||||||
|
Reference in New Issue
Block a user