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

Commit a412f477 authored by Sudheer Shanka's avatar Sudheer Shanka
Browse files

Update view state of the items in listpreference.

Bug: 26842763
Change-Id: Ie10c89626031f6bbfaa22564f056f371a4e81acb
parent af1f84a0
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -146,11 +146,10 @@ public class RestrictedListPreference extends CustomListPreference {
            ImageView padlock = (ImageView) root.findViewById(R.id.restricted_lock_icon);
            if (isRestrictedForEntry(entry)) {
                text.setEnabled(false);
                text.setChecked(false);
                padlock.setVisibility(View.VISIBLE);
            } else {
                if (position == mSelectedIndex) {
                    text.setChecked(true);
                }
                text.setChecked(position == mSelectedIndex);
                text.setEnabled(true);
                padlock.setVisibility(View.GONE);
            }