forked from omni/OmniCards
fix
This commit is contained in:
@@ -122,20 +122,19 @@ fun SelectTemplatePage(innerPadding: PaddingValues) {
|
|||||||
Text(stringResource(R.string.templates_not_found))
|
Text(stringResource(R.string.templates_not_found))
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (template in templates) {
|
for (template in templates) {
|
||||||
item {
|
item {
|
||||||
AdaptiveButton(
|
AdaptiveButton(
|
||||||
modifier = Modifier.fillMaxWidth(),
|
modifier = Modifier.fillMaxWidth(),
|
||||||
onClick = {
|
onClick = {
|
||||||
val intent = Intent(context, FillTemplateActivity::class.java)
|
val intent = Intent(context, FillTemplateActivity::class.java)
|
||||||
|
|
||||||
intent.putExtra("templateJson", Json.encodeToString(template))
|
intent.putExtra("templateJson", Json.encodeToString(template))
|
||||||
|
|
||||||
fillTemplateLauncher.launch(intent)
|
fillTemplateLauncher.launch(intent)
|
||||||
}
|
|
||||||
) {
|
|
||||||
Text(template.name)
|
|
||||||
}
|
}
|
||||||
|
) {
|
||||||
|
Text(template.name)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user