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

Commit fdc8eb3e authored by Chaohui Wang's avatar Chaohui Wang Committed by Android (Google) Code Review
Browse files

Merge "Not log error when isPackageEnabled = false" into main

parents 59dd8840 fa5b1a23
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1180,10 +1180,10 @@ public final class Utils extends com.android.settingslib.Utils {
        try {
            return context.getPackageManager().getApplicationInfo(packageName, 0).enabled;
        } catch (Exception e) {
            Log.e(TAG, "Error while retrieving application info for package " + packageName, e);
        }
            // Expected, package is not installed or not enabled.
            return false;
        }
    }

    /** Get {@link Resources} by subscription id if subscription id is valid. */
    public static Resources getResourcesForSubId(Context context, int subId) {