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

Commit 238eda08 authored by András Klöczl's avatar András Klöczl Committed by Automerger Merge Worker
Browse files

Merge "Improve keyguard UI when switch is disabled" into rvc-dev am: 06028798

Change-Id: I276684e63419876da8f5b9008382b6f4ec306169
parents d678d57e 06028798
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -46,6 +46,8 @@ public class KeyguardUserSwitcher {

    private static final String TAG = "KeyguardUserSwitcher";
    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 KeyguardStatusBarView mStatusBarView;
@@ -293,6 +295,9 @@ public class KeyguardUserSwitcher {
                mCurrentUserView = convertView;
            }
            convertView.setTag(item);
            convertView.setAlpha(
                    item.isCurrent || item.isSwitchToEnabled ? USER_SWITCH_ENABLED_ALPHA
                            : USER_SWITCH_DISABLED_ALPHA);
            return convertView;
        }