OSDN Git Service

Fix the finding logic of MediaButtonSession
authorSungsoo <sungsoo@google.com>
Fri, 9 Jun 2017 03:59:47 +0000 (12:59 +0900)
committerSungsoo <sungsoo@google.com>
Fri, 9 Jun 2017 04:55:48 +0000 (13:55 +0900)
commit39f479fe7e35028663e9663a9684a5d3600e8198
treef08b2a2f8bed5a90e49c26ceb6ae7305582bd871
parent387b97e68b0020da1bd69567e9e8799ca98a19c5
Fix the finding logic of MediaButtonSession

When we find a media button session with the given UID, we should
ignore the sessions whose playback state is not set.

Bug: 62373831
Test: passed CtsMediaTestCases
Change-Id: I484c888c5bdbceb85dd4524c1353906efc0c4f02
services/core/java/com/android/server/media/MediaSessionRecord.java
services/core/java/com/android/server/media/MediaSessionStack.java