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

Commit 96f6a6d2 authored by Brint E. Kriebel's avatar Brint E. Kriebel
Browse files

keyguard: Handle left icon visibility properly with wifi only devices

When telephony isn't available and the left icon has not yet been set to
a custom option, the left icon should be hidden.

This makes updateLeftAffordanceIcon and updateLeftButtonVisibility work
in a similar way to determine the icon visibility.

Change-Id: Ibb63ecef3c3cad73a19c04c85eccb93b423d5e80
parent c5841d0a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -362,8 +362,10 @@ public class KeyguardBottomAreaView extends FrameLayout implements View.OnClickL
        if (visible) {
            if (isTargetCustom(Shortcuts.LEFT_SHORTCUT)) {
                visible = !mShortcutHelper.isTargetEmpty(Shortcuts.LEFT_SHORTCUT);
            } else {
            } else if (canLaunchVoiceAssist()) {
                // Display left shortcut
            } else {
                visible = isPhoneVisible();
            }
        }
        mLeftAffordanceView.setVisibility(visible ? View.VISIBLE : View.GONE);