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

Commit b0fb5096 authored by Holly Sun's avatar Holly Sun
Browse files

Update gBoard icon to Go/Search depending on suggestions.

If there is a highlight item, show Go (->) icon. Otherwise, show Search (magnifying glass) icon.

Implement maybeUpdateEnterKeyIcon() in NexusLauncher because it's gBoard specific.

Test: manual. Verify icon changes according to states.
Bug: 183467628
Bug: 210661150
Change-Id: I5dbcb54a37f9d37ae31bf3eaef241ea8a3ede510
parent 9e1f6002
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -96,6 +96,10 @@ public final class FeatureFlags {
            "ENABLE_QUICK_LAUNCH_V2", false, "Use quick launch v2 "
            + "behavior. Quick search and quick launch v1 would be unavailable if this is enabled");

    public static final BooleanFlag GBOARD_UPDATE_ENTER_KEY = new DeviceFlag(
            "GBOARD_UPDATE_ENTER_KEY", false, "Update gBoard enter key "
            + "icon dynamically based on top search content for Quick Launch V2");

    public static final BooleanFlag ENABLE_HIDE_HEADER = new DeviceFlag("ENABLE_HIDE_HEADER",
            true, "Hide header on keyboard before typing in all apps");