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

Commit f86e8a05 authored by Eric Lok's avatar Eric Lok
Browse files

Remove unused eligibility flag for Perceptible Tasks

Eligibility of perceptible tasks is no longer configured per device. It
is now determined based off of system capabilities (supports PC mode or
freeform windows) - "desktop mode".

Bug: 397076790
Test: Manual
Flag: com.android.server.am.perceptible_tasks
Change-Id: I13be1a725512beb4e86fb1ca3f609f850bc65a65
parent 946c79ab
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -22,7 +22,4 @@
<resources>
    <!-- Whether to add padding at the bottom of the complication clock -->
    <bool name="dream_overlay_complication_clock_bottom_padding">false</bool>

    <!-- Whether to mark tasks that are present in the UI as perceptible tasks. -->
    <bool name="config_usePerceptibleTasks">false</bool>
</resources>
+0 −10
Original line number Diff line number Diff line
@@ -46,8 +46,6 @@ import android.view.Display;
import android.window.TaskSnapshot;

import com.android.internal.app.IVoiceInteractionManagerService;
import com.android.server.am.Flags;
import com.android.systemui.shared.R;
import com.android.systemui.shared.recents.model.Task;
import com.android.systemui.shared.recents.model.ThumbnailData;

@@ -323,14 +321,6 @@ public class ActivityManagerWrapper {
                || freeformDevOption);
    }

    /**
     * Returns true if tasks with a presence in the UI should be marked as perceptible tasks.
     */
    public static boolean usePerceptibleTasks(Context context) {
        return Flags.perceptibleTasks()
                && context.getResources().getBoolean(R.bool.config_usePerceptibleTasks);
    }

    /**
     * Returns true if the running task represents the home task
     */