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

Commit 1f3a8470 authored by Samuel Fufa's avatar Samuel Fufa
Browse files

App title in Widget list shouldn't be actionable by a11y methods

Bug:139913027
Test:Manual
Change-Id: I2a5d5551d09ee2bc96444164ed77225a3b4a829a
(cherry picked from commit d3720c21)
parent 52908c9a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -58,6 +58,10 @@ public class LauncherSettings {
         */
        public static final String ITEM_TYPE = "itemType";

        /**
         * The gesture is a package
         */
        public static final int ITEM_TYPE_NON_ACTIONABLE = -1;
        /**
         * The gesture is an application
         */
+3 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
package com.android.launcher3.model;

import com.android.launcher3.ItemInfoWithIcon;
import com.android.launcher3.LauncherSettings;

/**
 * Represents a {@link Package} in the widget tray section.
@@ -30,10 +31,12 @@ public class PackageItemInfo extends ItemInfoWithIcon {

    public PackageItemInfo(String packageName) {
        this.packageName = packageName;
        this.itemType = LauncherSettings.Favorites.ITEM_TYPE_NON_ACTIONABLE;
    }

    public PackageItemInfo(PackageItemInfo copy) {
        this.packageName = copy.packageName;
        this.itemType = LauncherSettings.Favorites.ITEM_TYPE_NON_ACTIONABLE;
    }

    @Override