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

Commit cf0c746e authored by Adam Cohen's avatar Adam Cohen
Browse files

Always log if Package is missing while loading default workspace

Change-Id: I7f2e5a9aabdf1fc192ad7912aaefa3f41c059ff1
parent 7573123c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -355,7 +355,7 @@ public class AutoInstallsLayout {
                    return addShortcut(info.loadLabel(mPackageManager).toString(),
                            intent, Favorites.ITEM_TYPE_APPLICATION);
                } 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;
            } else {
@@ -367,7 +367,7 @@ public class AutoInstallsLayout {
         * Helper method to allow extending the parser capabilities
         */
        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;
        }
    }