From ea33f8dba5d0c6b279f8c0f078139f65cfb04ce6 Mon Sep 17 00:00:00 2001 From: AntsyLich <59261191+AntsyLich@users.noreply.github.com> Date: Mon, 17 Oct 2022 19:42:47 +0600 Subject: [PATCH] Move "Share" to end of DropDownMenu (#8225) --- .../manga/components/MangaToolbar.kt | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/app/src/main/java/eu/kanade/presentation/manga/components/MangaToolbar.kt b/app/src/main/java/eu/kanade/presentation/manga/components/MangaToolbar.kt index 6bb4fc6d5c..47bbd20f6e 100644 --- a/app/src/main/java/eu/kanade/presentation/manga/components/MangaToolbar.kt +++ b/app/src/main/java/eu/kanade/presentation/manga/components/MangaToolbar.kt @@ -170,15 +170,6 @@ fun MangaToolbar( expanded = moreExpanded, onDismissRequest = onDismissRequest, ) { - if (onClickShare != null) { - DropdownMenuItem( - text = { Text(text = stringResource(R.string.action_share)) }, - onClick = { - onClickShare() - onDismissRequest() - }, - ) - } DropdownMenuItem( text = { Text(text = stringResource(R.string.action_edit_categories)) }, onClick = { @@ -193,6 +184,15 @@ fun MangaToolbar( onDismissRequest() }, ) + if (onClickShare != null) { + DropdownMenuItem( + text = { Text(text = stringResource(R.string.action_share)) }, + onClick = { + onClickShare() + onDismissRequest() + }, + ) + } } } }