mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Clarify exception message.
The exception fires when intent resolution fails to find a service which declares an appropriate intent-filter. The existing message is confusing; it's trying to say that the service couldn't be found but the double negative renders it incorrect.
#cleanup
#minor-release
PiperOrigin-RevId: 472736740
(cherry picked from commit 15d3d74e16)
This commit is contained in:
parent
e6a725b6c2
commit
8773b59fb5
1 changed files with 4 additions and 4 deletions
|
|
@ -118,10 +118,10 @@ public final class SessionToken implements Bundleable {
|
||||||
type = TYPE_BROWSER_SERVICE_LEGACY;
|
type = TYPE_BROWSER_SERVICE_LEGACY;
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalArgumentException(
|
throw new IllegalArgumentException(
|
||||||
serviceComponent
|
"Failed to resolve SessionToken for "
|
||||||
+ " doesn't implement none of"
|
+ serviceComponent
|
||||||
+ " MediaSessionService, MediaLibraryService, MediaBrowserService nor"
|
+ ". Manifest doesn't declare one of either MediaSessionService, MediaLibraryService,"
|
||||||
+ " MediaBrowserServiceCompat. Use service's full name");
|
+ " MediaBrowserService or MediaBrowserServiceCompat. Use service's full name.");
|
||||||
}
|
}
|
||||||
if (type != TYPE_BROWSER_SERVICE_LEGACY) {
|
if (type != TYPE_BROWSER_SERVICE_LEGACY) {
|
||||||
impl = new SessionTokenImplBase(serviceComponent, uid, type);
|
impl = new SessionTokenImplBase(serviceComponent, uid, type);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue