summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/AllAppsList.java
diff options
context:
space:
mode:
authorHyunyoung Song <hyunyoungs@google.com>2017-05-31 21:01:09 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2017-05-31 21:01:09 +0000
commitd5645d406bf50bd9c8004a597e29908b26d09925 (patch)
treee45d7eb9b65a9764d570552a0b78af87c5358020 /src/com/android/launcher3/AllAppsList.java
parentaee10c80abb0c58098ee500aacb134b8ff1d2f86 (diff)
parent3a253967df1cb5ea97c82b34162ae3ecd7f24bc0 (diff)
downloadandroid_packages_apps_Trebuchet-d5645d406bf50bd9c8004a597e29908b26d09925.tar.gz
android_packages_apps_Trebuchet-d5645d406bf50bd9c8004a597e29908b26d09925.tar.bz2
android_packages_apps_Trebuchet-d5645d406bf50bd9c8004a597e29908b26d09925.zip
Merge "Add debug message to indicate why shortcut has been deleted. b/62088762" into ub-launcher3-dorval-polish
Diffstat (limited to 'src/com/android/launcher3/AllAppsList.java')
-rw-r--r--src/com/android/launcher3/AllAppsList.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/launcher3/AllAppsList.java b/src/com/android/launcher3/AllAppsList.java
index f3202beb9..8ac857082 100644
--- a/src/com/android/launcher3/AllAppsList.java
+++ b/src/com/android/launcher3/AllAppsList.java
@@ -24,6 +24,7 @@ import android.os.Process;
import android.os.UserHandle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
+import android.util.Log;
import com.android.launcher3.compat.LauncherAppsCompat;
import com.android.launcher3.compat.PackageInstallerCompat;
@@ -39,6 +40,8 @@ import java.util.List;
* Stores the list of all applications for the all apps view.
*/
public class AllAppsList {
+ private static final String TAG = "AllAppsList";
+
public static final int DEFAULT_APPLICATIONS_NUMBER = 42;
/** The list off all apps. */
@@ -182,6 +185,7 @@ public class AllAppsList {
if (user.equals(applicationInfo.user)
&& packageName.equals(applicationInfo.componentName.getPackageName())) {
if (!findActivity(matches, applicationInfo.componentName)) {
+ Log.w(TAG, "Shortcut will be removed due to app component name change.");
removed.add(applicationInfo);
data.remove(i);
}