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

Commit ac120c9a authored by Samuel Fufa's avatar Samuel Fufa
Browse files

[Search] make AbstractSlideinView#createColorScrim overridable

+ Introduce feature flag for people tile results

Bug: 183972880
Bug: 184003600
Test: Manual
Change-Id: Ia8b3af4e99a66f640f6f42fc5886d9cbfb5e913c
parent 2043f200
Loading
Loading
Loading
Loading
+1 −9
Original line number Diff line number Diff line
@@ -91,14 +91,6 @@
    <!-- content description for hotseat items -->
    <string name="hotseat_prediction_content_description">Predicted app: <xliff:g id="title" example="Chrome">%1$s</xliff:g></string>

    <!-- primary educational text shown for first time search users -->
    <string name="search_edu_primary">Search your phone for apps, people, settings and more!</string>
    <!-- secondary educational text shown for first time search users -->
    <string name="search_edu_secondary">Tap keyboard search button to launch the first search
        result.</string>

    <!-- Dismiss button string for search education view -->
    <string name="search_edu_dismiss">Got it.</string>
    <!-- Feedback shown during interactive parts of Back gesture tutorial for left edge when the gesture is too far from the edge. [CHAR LIMIT=100] -->
    <string name="back_gesture_feedback_swipe_too_far_from_left_edge">Make sure you swipe from the far-left edge.</string>
    <!-- Feedback shown during interactive parts of Back gesture tutorial for left edge when the gesture is cancelled. [CHAR LIMIT=100] -->
+4 −0
Original line number Diff line number Diff line
@@ -95,6 +95,10 @@ public final class FeatureFlags {
    public static final BooleanFlag ENABLE_DEVICE_SEARCH = new DeviceFlag(
            "ENABLE_DEVICE_SEARCH", true, "Allows on device search in all apps");

    public static final BooleanFlag ENABLE_PEOPLE_TILE_PREVIEW = getDebugFlag(
            "ENABLE_PEOPLE_TILE_PREVIEW", false,
            "Experimental: Shows conversation shortcuts on home screen as search results");

    public static final BooleanFlag FOLDER_NAME_SUGGEST = new DeviceFlag(
            "FOLDER_NAME_SUGGEST", true,
            "Suggests folder names instead of blank text.");
+1 −1
Original line number Diff line number Diff line
@@ -216,7 +216,7 @@ public abstract class AbstractSlideInView extends AbstractFloatingView
        return mLauncher.getDragLayer();
    }

    protected static View createColorScrim(Context context, int bgColor) {
    protected View createColorScrim(Context context, int bgColor) {
        View view = new View(context);
        view.forceHasOverlappingRendering(false);
        view.setBackgroundColor(bgColor);