mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 10:46:53 -04:00
Migrated the ZimHostFragment to compose.
* Minor improvements in previous code for better readability.
This commit is contained in:
parent
d4ebe42d49
commit
37681dcb52
@ -95,13 +95,13 @@ fun ErrorActivityScreen(
|
||||
horizontalArrangement = Arrangement.SpaceEvenly
|
||||
) {
|
||||
KiwixButton(
|
||||
buttonTextId = R.string.crash_button_confirm,
|
||||
buttonText = stringResource(R.string.crash_button_confirm),
|
||||
clickListener = { sendDetailsButtonClickListener.invoke() },
|
||||
)
|
||||
|
||||
KiwixButton(
|
||||
clickListener = { noThanksButtonClickListener.invoke() },
|
||||
buttonTextId = R.string.no_thanks
|
||||
buttonText = stringResource(R.string.no_thanks)
|
||||
)
|
||||
}
|
||||
}
|
||||
@ -151,7 +151,7 @@ private fun CrashCheckBoxList(
|
||||
) {
|
||||
LazyColumn(modifier = modifier) {
|
||||
itemsIndexed(checkBoxData) { _, item ->
|
||||
CrashCheckBox(item.first to item.second)
|
||||
CrashCheckBox(item)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -69,7 +69,8 @@ fun AddNoteDialogScreen(
|
||||
) {
|
||||
KiwixDialogTheme {
|
||||
Scaffold(
|
||||
snackbarHost = { KiwixSnackbarHost(snackbarHostState = snackBarHostState) }
|
||||
snackbarHost = { KiwixSnackbarHost(snackbarHostState = snackBarHostState) },
|
||||
topBar = { KiwixAppBar(R.string.note, navigationIcon, actionMenuItems) }
|
||||
) { paddingValues ->
|
||||
Column(
|
||||
modifier = Modifier
|
||||
@ -78,7 +79,6 @@ fun AddNoteDialogScreen(
|
||||
.imePadding()
|
||||
.padding(paddingValues),
|
||||
) {
|
||||
KiwixAppBar(R.string.note, navigationIcon, actionMenuItems)
|
||||
ArticleTitleText(articleTitle)
|
||||
HorizontalDivider(
|
||||
modifier = Modifier.padding(vertical = FIVE_DP),
|
||||
|
Loading…
x
Reference in New Issue
Block a user