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
|
|
@ -357,7 +357,7 @@ class FeedFragment : BaseStateFragment<FeedState>() {
|
|||
val activity: Activity? = getActivity()
|
||||
if (context == null || context.resources == null || activity == null) return
|
||||
|
||||
InfoItemDialog.Builder(activity, this, item).create().show()
|
||||
InfoItemDialog.Builder(activity, context, this, item).create().show()
|
||||
}
|
||||
|
||||
private val listenerStreamItem = object : OnItemClickListener, OnItemLongClickListener {
|
||||
|
|
|
|||
|
|
@ -332,8 +332,8 @@ public class StatisticsPlaylistFragment
|
|||
}
|
||||
final StreamInfoItem infoItem = item.toStreamInfoItem();
|
||||
|
||||
final InfoItemDialog.Builder dialogBuilder = new InfoItemDialog.Builder(
|
||||
activity, this, infoItem);
|
||||
final InfoItemDialog.Builder dialogBuilder =
|
||||
new InfoItemDialog.Builder(activity, context, this, infoItem);
|
||||
|
||||
// set entries in the middle; the others are added automatically
|
||||
dialogBuilder.addEntry(StreamDialogDefaultEntry.DELETE);
|
||||
|
|
|
|||
|
|
@ -747,8 +747,8 @@ public class LocalPlaylistFragment extends BaseLocalListFragment<List<PlaylistSt
|
|||
}
|
||||
final StreamInfoItem infoItem = item.toStreamInfoItem();
|
||||
|
||||
final InfoItemDialog.Builder dialogBuilder = new InfoItemDialog.Builder(
|
||||
activity, this, infoItem);
|
||||
final InfoItemDialog.Builder dialogBuilder =
|
||||
new InfoItemDialog.Builder(activity, context, this, infoItem);
|
||||
|
||||
// add entries in the middle
|
||||
dialogBuilder.addAllEntries(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue