Skip to content
Commit 7234187c authored by Xiaowen Lei's avatar Xiaowen Lei
Browse files

Removes complication in onMediaDataLoaded if hasActiveMedia is false.

With this change, the complication is removed for the following cases:
  1. When the media app is removed from Recents screen.
     - Notes:
       - This doesn't trigger onMediaDataRemoved, but it causes the
       media to become inactive.
       - This also causes the mediaHost view to become invisible.
  2. When the user swipes to dismiss the UMO on Keyguard.
     - This also causes the media to become inactive.

Bug: 242613318
Test: manually on device
Test: atest MediaDreamSentinelTest
Change-Id: Iedd7ed264e62306b2e34f6f798259176591039ec
parent 486626b5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment