Use Context instead of Activity
Improve docs
This commit is contained in:
parent
f9ad08d977
commit
df28deb880
8 changed files with 138 additions and 40 deletions
|
|
@ -409,7 +409,7 @@ public abstract class BaseListFragment<I, N> extends BaseStateFragment<I>
|
|||
return;
|
||||
}
|
||||
|
||||
new InfoItemDialog.Builder(activity, this, item).create().show();
|
||||
new InfoItemDialog.Builder(activity, context, this, item).create().show();
|
||||
}
|
||||
|
||||
/*//////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
|||
|
|
@ -142,8 +142,8 @@ public class PlaylistFragment extends BaseListInfoFragment<PlaylistInfo> {
|
|||
return;
|
||||
}
|
||||
|
||||
final InfoItemDialog.Builder dialogBuilder = new InfoItemDialog.Builder(
|
||||
activity, this, item);
|
||||
final InfoItemDialog.Builder dialogBuilder =
|
||||
new InfoItemDialog.Builder(activity, context, this, item);
|
||||
|
||||
dialogBuilder.setAction(StreamDialogDefaultEntry.START_HERE_ON_BACKGROUND,
|
||||
(fragment, infoItem) -> NavigationHelper.playOnBackgroundPlayer(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue