NavigationHelper: inline trivial getPlayerIntent use
This commit is contained in:
parent
b592403a66
commit
e14ec3a4f9
2 changed files with 5 additions and 13 deletions
|
|
@ -99,17 +99,6 @@ public final class NavigationHelper {
|
|||
return intent;
|
||||
}
|
||||
|
||||
@NonNull
|
||||
public static <T> Intent getPlayerIntent(@NonNull final Context context,
|
||||
@NonNull final Class<T> targetClazz,
|
||||
@Nullable final PlayQueue playQueue,
|
||||
final boolean resumePlayback,
|
||||
final boolean playWhenReady) {
|
||||
return getPlayerIntent(context, targetClazz, playQueue)
|
||||
.putExtra(Player.PLAY_WHEN_READY, playWhenReady)
|
||||
.putExtra(Player.RESUME_PLAYBACK, resumePlayback);
|
||||
}
|
||||
|
||||
@NonNull
|
||||
public static <T> Intent getPlayerEnqueueNextIntent(@NonNull final Context context,
|
||||
@NonNull final Class<T> targetClazz,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue