Skip to content

Commit 69e2112

Browse files
committed
fix lint and tint icon color correctly when cant send any more message
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
1 parent 7abe896 commit 69e2112

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

app/src/main/java/com/nextcloud/client/assistant/AssistantScreen.kt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,13 @@ private fun InputBar(
394394
Icon(
395395
painter = painterResource(id = R.drawable.ic_send),
396396
contentDescription = stringResource(R.string.assistant_screen_send_message),
397-
tint = MaterialTheme.colorScheme.primary
397+
tint = if (chatUIState.canSend()) {
398+
MaterialTheme.colorScheme.primary
399+
} else {
400+
colorResource(
401+
R.color.disabled_text
402+
)
403+
}
398404
)
399405
}
400406
}

app/src/main/res/values/strings.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@
6666
<string name="assistant_screen_delete_task_alert_dialog_title">Delete task</string>
6767
<string name="assistant_screen_delete_task_alert_dialog_description">Are you sure you want to delete this task?</string>
6868
<string name="assistant_screen_task_more_actions_bottom_sheet_delete_action">Delete Task</string>
69-
<string name="assistant_screen_select_task_type_label">Choose an option</string>
7069
<string name="assistant_screen_task_create_success_message">Task created</string>
7170
<string name="assistant_screen_task_create_fail_message">An error occurred while creating the task</string>
7271
<string name="assistant_screen_task_delete_success_message">Task deleted</string>

0 commit comments

Comments
 (0)