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

Commit 47ae4aa0 authored by Andras Kloczl's avatar Andras Kloczl
Browse files

Improve keyguard UI when switch is disabled

Bug: 150441325
Screenshots: http://shortn/_IOEYKGaBdp
Test: Flash to a tablet and check the UI after boot before unlocking
      the device for the first time.
Change-Id: Ieb3880fcdc60d71b911ee9c945be30c7c2e0d99e
parent 272cae6e
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -46,6 +46,8 @@ public class KeyguardUserSwitcher {


    private static final String TAG = "KeyguardUserSwitcher";
    private static final String TAG = "KeyguardUserSwitcher";
    private static final boolean ALWAYS_ON = false;
    private static final boolean ALWAYS_ON = false;
    private static final float USER_SWITCH_ENABLED_ALPHA = 1.0f;
    private static final float USER_SWITCH_DISABLED_ALPHA = 0.38f;


    private final Container mUserSwitcherContainer;
    private final Container mUserSwitcherContainer;
    private final KeyguardStatusBarView mStatusBarView;
    private final KeyguardStatusBarView mStatusBarView;
@@ -293,6 +295,9 @@ public class KeyguardUserSwitcher {
                mCurrentUserView = convertView;
                mCurrentUserView = convertView;
            }
            }
            convertView.setTag(item);
            convertView.setTag(item);
            convertView.setAlpha(
                    item.isCurrent || item.isSwitchToEnabled ? USER_SWITCH_ENABLED_ALPHA
                            : USER_SWITCH_DISABLED_ALPHA);
            return convertView;
            return convertView;
        }
        }