Merge pull request #7222 from ktprograms/queue-menu-channel-details
Added the 'Show Channel Details' menu item to the Queue long press menu
This commit is contained in:
commit
7edef8d5a2
3 changed files with 34 additions and 2 deletions
|
|
@ -495,6 +495,27 @@ public final class NavigationHelper {
|
|||
context.startActivity(intent);
|
||||
}
|
||||
|
||||
/**
|
||||
* 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,
|
||||
@NonNull final String title) {
|
||||
final Intent intent = getOpenIntent(context, url, serviceId,
|
||||
StreamingService.LinkType.CHANNEL);
|
||||
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
intent.putExtra(Constants.KEY_TITLE, title);
|
||||
|
||||
context.startActivity(intent);
|
||||
}
|
||||
|
||||
public static void openMainActivity(final Context context) {
|
||||
final Intent mIntent = new Intent(context, MainActivity.class);
|
||||
mIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue