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

Commit 4989aa7d authored by Dianne Hackborn's avatar Dianne Hackborn Committed by Android (Google) Code Review
Browse files

Merge "Fix issue #3385054: HRI24 never enters suspend (LP0) - IKXEVEREST-3439" into honeycomb

parents 89fca351 c2d9c8e2
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -567,6 +567,7 @@ final class LoadedApk {
            } else {
                rd.validate(context, handler);
            }
            rd.mForgotten = false;
            return rd.getIIntentReceiver();
        }
    }
@@ -596,6 +597,7 @@ final class LoadedApk {
                        rd.setUnregisterLocation(ex);
                        holder.put(r, rd);
                    }
                    rd.mForgotten = true;
                    return rd.getIIntentReceiver();
                }
            }
@@ -666,6 +668,7 @@ final class LoadedApk {
        final boolean mRegistered;
        final IntentReceiverLeaked mLocation;
        RuntimeException mUnregisterLocation;
        boolean mForgotten;

        final class Args extends BroadcastReceiver.PendingResult implements Runnable {
            private Intent mCurIntent;
@@ -696,7 +699,7 @@ final class LoadedApk {
                final Intent intent = mCurIntent;
                mCurIntent = null;
                
                if (receiver == null || !mRegistered) {
                if (receiver == null || mForgotten) {
                    if (mRegistered && ordered) {
                        if (ActivityThread.DEBUG_BROADCAST) Slog.i(ActivityThread.TAG,
                                "Finishing null broadcast to " + mReceiver);