summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRajeev Kumar <rajekumar@google.com>2018-08-07 15:20:23 -0700
committerRajeev Kumar <rajekumar@google.com>2018-08-07 15:22:14 -0700
commit147320e64e8c29ec1513e4d41c4ee87d75f5ea68 (patch)
tree2d1c87e2b9d54be8df6d35df5b5832b71bcebeb8 /src
parent59d504e89bd98d3ec7c9debf554ed53f7948c8b3 (diff)
downloadandroid_packages_apps_Trebuchet-147320e64e8c29ec1513e4d41c4ee87d75f5ea68.tar.gz
android_packages_apps_Trebuchet-147320e64e8c29ec1513e4d41c4ee87d75f5ea68.tar.bz2
android_packages_apps_Trebuchet-147320e64e8c29ec1513e4d41c4ee87d75f5ea68.zip
Use equals for string comparison in ItemClickHandler.
Bug: 112325801 Test: Manual test Change-Id: I1b57dadac392d5c7f5a7fb367ddbaf79beb7faed
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher3/touch/ItemClickHandler.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/launcher3/touch/ItemClickHandler.java b/src/com/android/launcher3/touch/ItemClickHandler.java
index 97f836f4d..52fef9f7d 100644
--- a/src/com/android/launcher3/touch/ItemClickHandler.java
+++ b/src/com/android/launcher3/touch/ItemClickHandler.java
@@ -218,7 +218,7 @@ public class ItemClickHandler {
if (item instanceof ShortcutInfo) {
ShortcutInfo si = (ShortcutInfo) item;
if (si.hasStatusFlag(ShortcutInfo.FLAG_SUPPORTS_WEB_UI)
- && intent.getAction() == Intent.ACTION_VIEW) {
+ && Intent.ACTION_VIEW.equals(intent.getAction())) {
// make a copy of the intent that has the package set to null
// we do this because the platform sometimes disables instant
// apps temporarily (triggered by the user) and fallbacks to the