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

Skip to content
Commit 5a3013b4 authored by Iván Budnik's avatar Iván Budnik
Browse files

Fix nullability in MediaController#getPlaybackInfo()

The playback info field is NonNull, so getPlaybackInfo() is artificially
returning a null value if the Binder transaction to system_server fails.
As per go/android-api-guidelines#framework-rethrow-remoteexception we should always be rethrowing
RemoteExceptions to provide a strong signal that the operation failed.

In practice, the returned value is never null, unless system_server has
died. Several CTS tests already assume this NonNull-ness.

Test: atest CtsMediaBetterTogetherTestCases
Bug: 333564788
Change-Id: Id18cce692d8d0b25486da427ef9860eb2f176aef
parent 8e1ad154
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment