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

Commit 7657644f authored by Adam Cohen's avatar Adam Cohen Committed by Android Git Automerger
Browse files

am cf0c746e: Always log if Package is missing while loading default workspace

* commit 'cf0c746e':
  Always log if Package is missing while loading default workspace
parents eb2b1c63 cf0c746e
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -355,7 +355,7 @@ public class AutoInstallsLayout {
                    return addShortcut(info.loadLabel(mPackageManager).toString(),
                    return addShortcut(info.loadLabel(mPackageManager).toString(),
                            intent, Favorites.ITEM_TYPE_APPLICATION);
                            intent, Favorites.ITEM_TYPE_APPLICATION);
                } catch (PackageManager.NameNotFoundException e) {
                } catch (PackageManager.NameNotFoundException e) {
                    if (LOGD) Log.w(TAG, "Unable to add favorite: " + packageName + "/" + className, e);
                    Log.e(TAG, "Unable to add favorite: " + packageName + "/" + className, e);
                }
                }
                return -1;
                return -1;
            } else {
            } else {
@@ -367,7 +367,7 @@ public class AutoInstallsLayout {
         * Helper method to allow extending the parser capabilities
         * Helper method to allow extending the parser capabilities
         */
         */
        protected long invalidPackageOrClass(XmlResourceParser parser) {
        protected long invalidPackageOrClass(XmlResourceParser parser) {
            if (LOGD) Log.d(TAG, "Skipping invalid <favorite> with no component");
            Log.w(TAG, "Skipping invalid <favorite> with no component");
            return -1;
            return -1;
        }
        }
    }
    }