commit | a5ad327f45c741738ecec9cf17c9c71c0ce4bbf5 | [log] [tgz] |
---|---|---|
author | Hongwei Wang <hwwang@google.com> | Mon May 22 14:29:27 2023 -0700 |
committer | Hongwei Wang <hwwang@google.com> | Mon May 22 14:34:55 2023 -0700 |
tree | ca06ef03877654c64b8df0ec539de07d803c54f5 | |
parent | b03c480d4baa2deb47c50aa27e7edc5f0e2e67b6 [diff] |
Cache the Binder call for PlaybackState It's rare but possible that the 2nd Binder call returns a different value than the 1st one, fix the potential NPE by caching the return value of MediaController#getPlaybackState Bug: 283583998 Test: N/A Change-Id: I9e8f456f3817f68dd98f637a1ee4a7d6d109801e