File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
libraries/session/src/main/java/androidx/media3/session Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1515 */
1616package androidx .media3 .session ;
1717
18+ import static android .os .Build .VERSION .SDK_INT ;
1819import static androidx .media3 .session .SessionToken .TYPE_BROWSER_SERVICE_LEGACY ;
1920import static androidx .media3 .session .SessionToken .TYPE_LIBRARY_SERVICE ;
2021import static androidx .media3 .session .SessionToken .TYPE_SESSION ;
2425
2526import android .content .ComponentName ;
2627import android .media .session .MediaSession ;
28+ import android .os .Build ;
2729import android .os .Bundle ;
2830import android .text .TextUtils ;
2931import androidx .annotation .Nullable ;
@@ -74,7 +76,9 @@ private SessionTokenImplLegacy(
7476 @ Nullable ComponentName componentName ,
7577 String packageName ,
7678 Bundle extras ) {
77- checkArgument (!TextUtils .isEmpty (packageName ));
79+ // packageName can be blank on some API 36 Samsung devices: b/450752936#comment5
80+ checkArgument (
81+ (Build .MANUFACTURER .equals ("samsung" ) && SDK_INT == 36 ) || !TextUtils .isEmpty (packageName ));
7882 this .legacyToken = legacyToken ;
7983 this .uid = uid ;
8084 this .type = type ;
You can’t perform that action at this time.
0 commit comments