Don't cancel PendingIntents unless the stay_stopped flag is on.

This change should be accompanied by other enhancements needed
to harden the stopped state. So, only cancel PendingIntents for
stopped apps when the flag is enabled.

Bug: 332922400
Test: atest tests/app/src/android/app/cts/ForceStopTest.java
Change-Id: I186f43ca0736072ab8f235e448deff304dda84cb
1 file changed