Skip to content

[feature-medialist] Add trigger to open list editor upon completion of a series #205

Description

@wax911

AniTrend Issue Guidelines

Before opening a new issue, please take a moment to review our community guidelines to make the contribution process easy and effective for everyone involved.

You may find an answer in already closed issues:
https://github.com/AniTrend/anitrend-v2/issues?q=is%3Aissue+is%3Aclosed

Feature Information

Automatically open feature-medialist-editor when a user uses the shortcut item to increment thier progress, allowing the user to update other fields, ideally we might want to make this optional so as not to force everyone to go through this.

We'll add more details later, once we understand the requirement fully

Solution Information

TBA

fun View.openMediaListSheetFor(
entity: Media,
settings: IUserSettings
): Boolean {
runIfActivityContext {
runIfAuthenticated(settings) {
val fragmentItem = FragmentItem(
fragment = MediaListEditorRouter.forSheet(),
parameter = MediaListEditorRouter.Param(
mediaId = entity.id,
mediaType = entity.category.type,
scoreFormat = settings.scoreFormat.value
).asBundle()
)
val dialog = fragmentItem.fragmentByTagOrNew(this)
dialog.show(fragmentManager(), fragmentItem.tag())
}
}
return true
}

Additional Context

TBA

Metadata

Metadata

Assignees

No one assigned

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions