mirror of
https://github.com/TeamNewPipe/NewPipe.git
synced 2024-11-25 12:32:31 +01:00
Improved documentation
This commit is contained in:
parent
afc8db8f81
commit
2271ea4281
@ -56,6 +56,9 @@ public final class QueueItemMenuUtil {
|
||||
.show(fragmentManager, "QueueItemMenuUtil@append_playlist"));
|
||||
return true;
|
||||
case R.id.menu_item_channel_details:
|
||||
// An intent must be used here.
|
||||
// Opening with FragmentManager transactions is not working,
|
||||
// as PlayQueueActivity doesn't use fragments.
|
||||
NavigationHelper.openChannelFragmentUsingIntent(context, item.getServiceId(),
|
||||
item.getUploaderUrl(), item.getUploader());
|
||||
return true;
|
||||
|
@ -491,11 +491,15 @@ public final class NavigationHelper {
|
||||
context.startActivity(intent);
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////
|
||||
// PlayQueueActivity doesn't use fragments so the //
|
||||
// openChannelFragment method can't be used //
|
||||
// since that uses FragmentManager transactions. //
|
||||
/////////////////////////////////////////////////////
|
||||
/**
|
||||
* Opens {@link ChannelFragment}.
|
||||
* Use this instead of {@link #openChannelFragment(FragmentManager, int, String, String)}
|
||||
* when no fragments are used / no FragmentManager is available.
|
||||
* @param context
|
||||
* @param serviceId
|
||||
* @param url
|
||||
* @param title
|
||||
*/
|
||||
public static void openChannelFragmentUsingIntent(final Context context,
|
||||
final int serviceId,
|
||||
final String url,
|
||||
|
Loading…
Reference in New Issue
Block a user