Fix build
This commit is contained in:
parent
3c741c13a4
commit
3912757758
@ -4,6 +4,8 @@ import androidx.compose.foundation.layout.Box
|
||||
import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.material.icons.outlined.Close
|
||||
import androidx.compose.material.icons.outlined.MoreVert
|
||||
import androidx.compose.material3.DropdownMenu
|
||||
import androidx.compose.material3.DropdownMenuItem
|
||||
import androidx.compose.material3.Icon
|
||||
import androidx.compose.material3.IconButton
|
||||
import androidx.compose.material3.Text
|
||||
@ -18,7 +20,6 @@ import androidx.compose.ui.unit.DpOffset
|
||||
import androidx.compose.ui.unit.dp
|
||||
import eu.kanade.tachiyomi.R
|
||||
import eu.kanade.tachiyomi.ui.browse.migration.advanced.process.MigratingManga
|
||||
import me.saket.cascade.CascadeDropdownMenu
|
||||
|
||||
@Composable
|
||||
fun MigrationActionIcon(
|
||||
@ -47,19 +48,19 @@ fun MigrationActionIcon(
|
||||
contentDescription = stringResource(R.string.abc_action_menu_overflow_description),
|
||||
)
|
||||
}
|
||||
CascadeDropdownMenu(
|
||||
DropdownMenu(
|
||||
expanded = moreExpanded,
|
||||
onDismissRequest = closeMenu,
|
||||
offset = DpOffset(8.dp, (-56).dp),
|
||||
) {
|
||||
androidx.compose.material3.DropdownMenuItem(
|
||||
DropdownMenuItem(
|
||||
text = { Text(stringResource(R.string.action_search_manually)) },
|
||||
onClick = {
|
||||
searchManually()
|
||||
closeMenu()
|
||||
},
|
||||
)
|
||||
androidx.compose.material3.DropdownMenuItem(
|
||||
DropdownMenuItem(
|
||||
text = { Text(stringResource(R.string.action_skip_entry)) },
|
||||
onClick = {
|
||||
skipManga()
|
||||
@ -67,14 +68,14 @@ fun MigrationActionIcon(
|
||||
},
|
||||
)
|
||||
if (result is MigratingManga.SearchResult.Result) {
|
||||
androidx.compose.material3.DropdownMenuItem(
|
||||
DropdownMenuItem(
|
||||
text = { Text(stringResource(R.string.action_migrate_now)) },
|
||||
onClick = {
|
||||
migrateNow()
|
||||
closeMenu()
|
||||
},
|
||||
)
|
||||
androidx.compose.material3.DropdownMenuItem(
|
||||
DropdownMenuItem(
|
||||
text = { Text(stringResource(R.string.action_copy_now)) },
|
||||
onClick = {
|
||||
copyNow()
|
||||
|
@ -127,11 +127,11 @@ private fun LibraryRegularToolbar(
|
||||
if (onClickSyncExh != null) {
|
||||
AppBar.OverflowAction(
|
||||
title = stringResource(R.string.sync_favorites),
|
||||
onClick = onClickSyncExh
|
||||
onClick = onClickSyncExh,
|
||||
)
|
||||
} else {
|
||||
null
|
||||
}
|
||||
},
|
||||
// SY <--
|
||||
),
|
||||
)
|
||||
|
@ -161,7 +161,7 @@ fun MangaToolbar(
|
||||
add(
|
||||
AppBar.OverflowAction(
|
||||
title = stringResource(R.string.merge),
|
||||
onClick = onClickMerge
|
||||
onClick = onClickMerge,
|
||||
),
|
||||
)
|
||||
}
|
||||
@ -170,14 +170,14 @@ fun MangaToolbar(
|
||||
AppBar.OverflowAction(
|
||||
title = stringResource(R.string.action_edit_info),
|
||||
onClick = onClickEditInfo,
|
||||
)
|
||||
),
|
||||
)
|
||||
}
|
||||
if (onClickRecommend != null) {
|
||||
add(
|
||||
AppBar.OverflowAction(
|
||||
title = stringResource(R.string.az_recommends),
|
||||
onClick = onClickRecommend
|
||||
onClick = onClickRecommend,
|
||||
),
|
||||
)
|
||||
}
|
||||
@ -185,7 +185,7 @@ fun MangaToolbar(
|
||||
add(
|
||||
AppBar.OverflowAction(
|
||||
title = stringResource(R.string.merge_settings),
|
||||
onClick = onClickMergedSettings
|
||||
onClick = onClickMergedSettings,
|
||||
),
|
||||
)
|
||||
}
|
||||
|
@ -101,7 +101,7 @@ fun EhLoginWebViewScreen(
|
||||
|
||||
val webClient = remember {
|
||||
object : AccompanistWebViewClient() {
|
||||
override fun onPageFinished(view: WebView?, url: String?) {
|
||||
override fun onPageFinished(view: WebView, url: String?) {
|
||||
super.onPageFinished(view, url)
|
||||
onPageFinished(view ?: return, url ?: return)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user