summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/Utilities.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2017-03-21 23:21:26 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-03-21 23:21:26 +0000
commitd23f37794f2a326623313d7df1e53d2863cd030b (patch)
treedda441b39a21b6d196c9ad364796efc6678de68e /src/com/android/launcher3/Utilities.java
parente28fb8354e1e69ffff5bf051f60797c15b0834e0 (diff)
parent77ff9a4343aa40f0d893a9b65ecfbe4bf89e65e7 (diff)
downloadandroid_packages_apps_Trebuchet-d23f37794f2a326623313d7df1e53d2863cd030b.tar.gz
android_packages_apps_Trebuchet-d23f37794f2a326623313d7df1e53d2863cd030b.tar.bz2
android_packages_apps_Trebuchet-d23f37794f2a326623313d7df1e53d2863cd030b.zip
Merge "Removing the profile extra from intent and using the profile id from the profile column" into ub-launcher3-dorval
am: 77ff9a4343 Change-Id: Ib0cd8cb8f963b78a9cd53ed896aeb6e4f6163683
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 2413d8ae6..17ad2b0d8 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;
}