summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/Utilities.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2017-03-21 23:15:58 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2017-03-21 23:15:59 +0000
commit77ff9a4343aa40f0d893a9b65ecfbe4bf89e65e7 (patch)
treecc482a70f7273feb8b89fd9eaa25359e1a35a7c2 /src/com/android/launcher3/Utilities.java
parented68728b1f22bc849e0567f2be3aeaf6798440ca (diff)
parent24bb66a1c5a435ab0c55b4a97e788bdc2595bf84 (diff)
downloadandroid_packages_apps_Trebuchet-77ff9a4343aa40f0d893a9b65ecfbe4bf89e65e7.tar.gz
android_packages_apps_Trebuchet-77ff9a4343aa40f0d893a9b65ecfbe4bf89e65e7.tar.bz2
android_packages_apps_Trebuchet-77ff9a4343aa40f0d893a9b65ecfbe4bf89e65e7.zip
Merge "Removing the profile extra from intent and using the profile id from the profile column" into ub-launcher3-dorval
Diffstat (limited to 'src/com/android/launcher3/Utilities.java')
-rw-r--r--src/com/android/launcher3/Utilities.java9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/com/android/launcher3/Utilities.java b/src/com/android/launcher3/Utilities.java
index abc53673b..207a7d4af 100644
--- a/src/com/android/launcher3/Utilities.java
+++ b/src/com/android/launcher3/Utilities.java
@@ -468,13 +468,8 @@ public final class Utilities {
&& TextUtils.isEmpty(launchIntent.getDataString())) {
// An app target can either have no extra or have ItemInfo.EXTRA_PROFILE.
Bundle extras = launchIntent.getExtras();
- if (extras == null) {
- return true;
- } else {
- Set<String> keys = extras.keySet();
- return keys.size() == 1 && keys.contains(ItemInfo.EXTRA_PROFILE);
- }
- };
+ return extras == null || extras.keySet().isEmpty();
+ }
return false;
}