|
|
@ -156,7 +156,7 @@ fun MangaToolbar(
|
|
|
|
Icon(Icons.Outlined.FilterList, contentDescription = stringResource(R.string.action_filter), tint = filterTint)
|
|
|
|
Icon(Icons.Outlined.FilterList, contentDescription = stringResource(R.string.action_filter), tint = filterTint)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (onClickEditCategory != null && onClickMigrate != null) {
|
|
|
|
if (onClickEditCategory != null || onClickMigrate != null || onClickShare != null) {
|
|
|
|
var moreExpanded by remember { mutableStateOf(false) }
|
|
|
|
var moreExpanded by remember { mutableStateOf(false) }
|
|
|
|
Box {
|
|
|
|
Box {
|
|
|
|
IconButton(onClick = { moreExpanded = !moreExpanded }) {
|
|
|
|
IconButton(onClick = { moreExpanded = !moreExpanded }) {
|
|
|
@ -170,6 +170,7 @@ fun MangaToolbar(
|
|
|
|
expanded = moreExpanded,
|
|
|
|
expanded = moreExpanded,
|
|
|
|
onDismissRequest = onDismissRequest,
|
|
|
|
onDismissRequest = onDismissRequest,
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
|
|
|
|
if (onClickEditCategory != null) {
|
|
|
|
DropdownMenuItem(
|
|
|
|
DropdownMenuItem(
|
|
|
|
text = { Text(text = stringResource(R.string.action_edit_categories)) },
|
|
|
|
text = { Text(text = stringResource(R.string.action_edit_categories)) },
|
|
|
|
onClick = {
|
|
|
|
onClick = {
|
|
|
@ -177,6 +178,8 @@ fun MangaToolbar(
|
|
|
|
onDismissRequest()
|
|
|
|
onDismissRequest()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (onClickMigrate != null) {
|
|
|
|
DropdownMenuItem(
|
|
|
|
DropdownMenuItem(
|
|
|
|
text = { Text(text = stringResource(R.string.action_migrate)) },
|
|
|
|
text = { Text(text = stringResource(R.string.action_migrate)) },
|
|
|
|
onClick = {
|
|
|
|
onClick = {
|
|
|
@ -184,6 +187,7 @@ fun MangaToolbar(
|
|
|
|
onDismissRequest()
|
|
|
|
onDismissRequest()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
}
|
|
|
|
if (onClickShare != null) {
|
|
|
|
if (onClickShare != null) {
|
|
|
|
DropdownMenuItem(
|
|
|
|
DropdownMenuItem(
|
|
|
|
text = { Text(text = stringResource(R.string.action_share)) },
|
|
|
|
text = { Text(text = stringResource(R.string.action_share)) },
|
|
|
|