lintformat

Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
sowjanyakch 2025-05-26 16:06:22 +02:00 committed by Marcel Hibbe
parent b9e9d0ccd1
commit 18b75233a5
No known key found for this signature in database
GPG Key ID: C793F8B59F43CE7B
3 changed files with 4 additions and 4 deletions

View File

@ -31,7 +31,6 @@ fun ContactsScreen(contactsViewModel: ContactsViewModel, uiState: ContactsUiStat
val autocompleteUsers by contactsViewModel.selectedParticipantsList.collectAsStateWithLifecycle()
val enableAddButton by contactsViewModel.enableAddButton.collectAsStateWithLifecycle()
Scaffold(
topBar = {
AppBar(

View File

@ -53,7 +53,7 @@ class ContactsViewModel @Inject constructor(
_searchQuery.value = query
}
fun modifyClickAddButton(value:Boolean){
fun modifyClickAddButton(value: Boolean) {
_clickAddButton.value = value
}
@ -63,7 +63,7 @@ class ContactsViewModel @Inject constructor(
_selectedContacts.value = _selectedContacts.value + contact
}
fun updateAddButtonState() {
fun updateAddButtonState() {
if (_selectedContacts.value.isEmpty()) {
_enableAddButton.value = false
} else {

View File

@ -32,6 +32,7 @@ import com.nextcloud.talk.models.json.autocomplete.AutocompleteUser
@SuppressLint("UnrememberedMutableState")
@OptIn(ExperimentalMaterial3Api::class)
@Suppress("LongParameterList", "LongMethod")
@Composable
fun AppBar(
title: String,
@ -44,7 +45,7 @@ fun AppBar(
onUpdateSearchQuery: (String) -> Unit,
onUpdateAutocompleteUsers: () -> Unit,
enableAddButton: Boolean,
clickAddButton:(Boolean) -> Unit
clickAddButton: (Boolean) -> Unit
) {
val context = LocalContext.current