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

Commit 96202b43 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Add tooltip when long pressing system shortcut icon" into...

Merge "Add tooltip when long pressing system shortcut icon" into ub-launcher3-rvc-dev am: 671173ef

Change-Id: Ia5a223c43e93f9565a8475217e66602a3a3f385a
parents 1ce281c5 671173ef
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -51,6 +51,7 @@ import com.android.launcher3.DropTarget;
import com.android.launcher3.DropTarget.DragObject;
import com.android.launcher3.Launcher;
import com.android.launcher3.R;
import com.android.launcher3.Utilities;
import com.android.launcher3.accessibility.LauncherAccessibilityDelegate;
import com.android.launcher3.accessibility.ShortcutMenuAccessibilityDelegate;
import com.android.launcher3.dot.DotInfo;
@@ -397,6 +398,9 @@ public class PopupContainerWithArrow<T extends BaseDraggingActivity> extends Arr
        } else if (view instanceof ImageView) {
            // Only the system shortcut icon shows on a gray background header.
            info.setIconAndContentDescriptionFor((ImageView) view);
            if (Utilities.ATLEAST_OREO) {
                view.setTooltipText(view.getContentDescription());
            }
        }
        view.setTag(info);
        view.setOnClickListener(info);