mirror of
https://github.com/nextcloud/android.git
synced 2024-11-24 22:25:44 +03:00
lint decreased
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
parent
6a8b50e116
commit
948f249d9d
1 changed files with 4 additions and 4 deletions
|
@ -136,8 +136,8 @@ fun AssistantScreen(viewModel: AssistantViewModel) {
|
|||
}
|
||||
}
|
||||
|
||||
checkTaskAdd(isTaskCreated, activity, viewModel)
|
||||
checkTaskDeletion(isTaskDeleted, activity, viewModel)
|
||||
CheckTaskAdd(isTaskCreated, activity, viewModel)
|
||||
CheckTaskDeletion(isTaskDeleted, activity, viewModel)
|
||||
|
||||
if (showDeleteTaskAlertDialog) {
|
||||
taskIdToDeleted?.let { id ->
|
||||
|
@ -160,7 +160,7 @@ fun AssistantScreen(viewModel: AssistantViewModel) {
|
|||
}
|
||||
|
||||
@Composable
|
||||
private fun checkTaskAdd(isTaskCreated: Boolean?, activity: Activity, viewModel: AssistantViewModel) {
|
||||
private fun CheckTaskAdd(isTaskCreated: Boolean?, activity: Activity, viewModel: AssistantViewModel) {
|
||||
isTaskCreated?.let {
|
||||
val messageId = if (it) {
|
||||
R.string.assistant_screen_task_create_success_message
|
||||
|
@ -178,7 +178,7 @@ private fun checkTaskAdd(isTaskCreated: Boolean?, activity: Activity, viewModel:
|
|||
}
|
||||
|
||||
@Composable
|
||||
private fun checkTaskDeletion(isTaskDeleted: Boolean?, activity: Activity, viewModel: AssistantViewModel) {
|
||||
private fun CheckTaskDeletion(isTaskDeleted: Boolean?, activity: Activity, viewModel: AssistantViewModel) {
|
||||
isTaskDeleted?.let {
|
||||
val messageId = if (it) {
|
||||
R.string.assistant_screen_task_delete_success_message
|
||||
|
|
Loading…
Reference in a new issue