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

Commit 2f3f0fcc authored by Sudheer Shanka's avatar Sudheer Shanka Committed by Android (Google) Code Review
Browse files

Merge "Ignore "forceDelay" option for packages that are not running."

parents 331e4ee4 11fb9bd4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -5310,6 +5310,9 @@ public class ActivityManager {
     * <p> When {@code delayedDurationMs} is {@code 0}, it will clears any previously
     * set forced delays.
     *
     * <p><b>Note: This method is only intended for testing and it only
     * works for packages that are already running.
     *
     * @hide
     */
    @RequiresPermission(android.Manifest.permission.DUMP)
+2 −1
Original line number Diff line number Diff line
@@ -425,8 +425,9 @@ class BroadcastProcessQueue {
    /**
     * Get package name of the first application loaded into this process.
     */
    @Nullable
    public String getPackageName() {
        return app.getApplicationInfo().packageName;
        return app == null ? null : app.getApplicationInfo().packageName;
    }

    /**