Loading src/com/android/settings/RestrictedListPreference.java +2 −3 Original line number Original line Diff line number Diff line Loading @@ -146,11 +146,10 @@ public class RestrictedListPreference extends CustomListPreference { ImageView padlock = (ImageView) root.findViewById(R.id.restricted_lock_icon); ImageView padlock = (ImageView) root.findViewById(R.id.restricted_lock_icon); if (isRestrictedForEntry(entry)) { if (isRestrictedForEntry(entry)) { text.setEnabled(false); text.setEnabled(false); text.setChecked(false); padlock.setVisibility(View.VISIBLE); padlock.setVisibility(View.VISIBLE); } else { } else { if (position == mSelectedIndex) { text.setChecked(position == mSelectedIndex); text.setChecked(true); } text.setEnabled(true); text.setEnabled(true); padlock.setVisibility(View.GONE); padlock.setVisibility(View.GONE); } } Loading Loading
src/com/android/settings/RestrictedListPreference.java +2 −3 Original line number Original line Diff line number Diff line Loading @@ -146,11 +146,10 @@ public class RestrictedListPreference extends CustomListPreference { ImageView padlock = (ImageView) root.findViewById(R.id.restricted_lock_icon); ImageView padlock = (ImageView) root.findViewById(R.id.restricted_lock_icon); if (isRestrictedForEntry(entry)) { if (isRestrictedForEntry(entry)) { text.setEnabled(false); text.setEnabled(false); text.setChecked(false); padlock.setVisibility(View.VISIBLE); padlock.setVisibility(View.VISIBLE); } else { } else { if (position == mSelectedIndex) { text.setChecked(position == mSelectedIndex); text.setChecked(true); } text.setEnabled(true); text.setEnabled(true); padlock.setVisibility(View.GONE); padlock.setVisibility(View.GONE); } } Loading