add message when no activity
This commit is contained in:
@@ -145,6 +145,19 @@ fun ActivityDialog(
|
||||
onClose()
|
||||
}
|
||||
}
|
||||
|
||||
if (activities.isEmpty()) {
|
||||
Text(
|
||||
stringResource(R.string.no_activities_found),
|
||||
Modifier
|
||||
.fillMaxWidth()
|
||||
.padding(8.dp),
|
||||
fontWeight = FontWeight.Bold,
|
||||
textAlign = TextAlign.Center,
|
||||
fontSize = 18.sp,
|
||||
)
|
||||
}
|
||||
|
||||
LazyColumn(
|
||||
Modifier
|
||||
.fillMaxHeight()
|
||||
|
||||
@@ -124,4 +124,5 @@
|
||||
<string name="rejected">Rejected</string>
|
||||
<string name="language">Language</string>
|
||||
<string name="language_description">For the App\'s Interface</string>
|
||||
<string name="no_activities_found">No activities found</string>
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user