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

Commit 448e0ade authored by Ikram Gabiyev's avatar Ikram Gabiyev
Browse files

Filter recents view instances by package name

Filter instances of GroupTasks based on package name
as a part of support for multi-instance

Add a feature flag to toggle multi-instance features

See the video below for how to use the demo.
Note: some extra UI elements were added since video
was recorded, but the filtering process is the same.
http://recall/-/da585DRwKRZK3S2xxcQrSm/gW9HZnbCvGyH1DQiVizOW2

See go/multi-instance for more info about the feature

Bug: 253520408

Test: manually tested the instance filtering

Change-Id: I19c947ca353699096388b9fbbdca6d75cb0041a7
parent 1f155d6f
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -28,6 +28,17 @@
        android:layout_width="match_parent"
        android:layout_height="match_parent"/>

    <ImageView
        android:id="@+id/show_windows"
        android:layout_height="@dimen/recents_filter_icon_size"
        android:layout_width="@dimen/recents_filter_icon_size"
        android:layout_gravity="end"
        android:visibility="gone"
        android:tint="@color/recents_filter_icon"
        android:contentDescription="@string/recents_filter_icon_desc"
        android:importantForAccessibility="no"
        android:src="@drawable/ic_select_windows" />

    <com.android.quickstep.views.IconView
        android:id="@+id/icon"
        android:layout_width="@dimen/task_thumbnail_icon_size"
+22 −0
Original line number Diff line number Diff line
@@ -38,6 +38,28 @@
        android:layout_width="match_parent"
        android:layout_height="match_parent"/>

    <ImageView
        android:id="@+id/show_windows"
        android:layout_height="@dimen/recents_filter_icon_size"
        android:layout_width="@dimen/recents_filter_icon_size"
        android:layout_gravity="start"
        android:visibility="gone"
        android:tint="@color/recents_filter_icon"
        android:contentDescription="@string/recents_filter_icon_desc"
        android:importantForAccessibility="no"
        android:src="@drawable/ic_select_windows" />

    <ImageView
        android:id="@+id/show_windows_right"
        android:layout_height="@dimen/recents_filter_icon_size"
        android:layout_width="@dimen/recents_filter_icon_size"
        android:layout_gravity="end"
        android:visibility="gone"
        android:tint="@color/recents_filter_icon"
        android:contentDescription="@string/recents_filter_icon_desc"
        android:importantForAccessibility="no"
        android:src="@drawable/ic_select_windows" />

    <com.android.quickstep.views.IconView
        android:id="@+id/icon"
        android:layout_width="@dimen/task_thumbnail_icon_size"
+3 −0
Original line number Diff line number Diff line
@@ -76,4 +76,7 @@

    <color name="all_set_page_background">#FFFFFFFF</color>

    <!-- Recents overview -->
    <color name="recents_filter_icon">#333333</color>

</resources>
 No newline at end of file
+3 −0
Original line number Diff line number Diff line
@@ -306,6 +306,9 @@
    <dimen name="taskbar_button_margin_6_5">75dp</dimen>
    <dimen name="taskbar_button_margin_default">48dp</dimen>

    <!-- Recents overview -->
    <dimen name="recents_filter_icon_size">30dp</dimen>

    <!-- Launcher splash screen -->
    <!-- Note: keep this value in sync with the WindowManager/Shell dimens.xml -->
    <!--     starting_surface_exit_animation_window_shift_length -->
+7 −0
Original line number Diff line number Diff line
@@ -36,6 +36,13 @@
    <!-- Recents: Title of a button that clears the task list, i.e. closes all tasks. [CHAR LIMIT=30] -->
    <string name="recents_clear_all">Clear all</string>

    <!-- Recents: Title of a button that goes back from displaying tasks filtered by package name to displaying all tasks [CHAR LIMIT=30] -->
    <string name="recents_back" translatable="false">Back</string>

    <!-- TODO: b/260610444. Content description of filtering icons needs to be updated -->
    <!-- Recents: Content description for the icon on top of taskviews to initiate filtering -->
    <string name="recents_filter_icon_desc" translatable="false">Click to show only this app\'s tasks</string>

    <!-- Accessibility title for the list of recent apps [CHAR_LIMIT=none] -->
    <string name="accessibility_recent_apps">Recent apps</string>

Loading