ktlintFormat

Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
sowjanyakch 2025-05-28 23:06:20 +02:00 committed by Marcel Hibbe
parent 05815ebeae
commit 87f8272b10
No known key found for this signature in database
GPG Key ID: C793F8B59F43CE7B
4 changed files with 10 additions and 15 deletions

View File

@ -7,7 +7,6 @@
package com.nextcloud.talk.contacts
import android.annotation.SuppressLint
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.nextcloud.talk.models.json.autocomplete.AutocompleteUser
@ -37,14 +36,11 @@ class ContactsViewModel @Inject constructor(
private val _isAddParticipantsView = MutableStateFlow(false)
val isAddParticipantsView: StateFlow<Boolean> = _isAddParticipantsView
@SuppressLint("PropertyName")
private val _enableAddButton = MutableStateFlow(false)
val enableAddButton: StateFlow<Boolean> = _enableAddButton
@SuppressLint("PropertyName")
private val _selectedContacts = MutableStateFlow<List<AutocompleteUser>>(emptyList())
@SuppressLint("PropertyName")
private val _clickAddButton = MutableStateFlow(false)
private var hideAlreadyAddedParticipants: Boolean = false

View File

@ -50,9 +50,9 @@ fun AppBar(
clickAddButton: (Boolean) -> Unit
) {
val context = LocalContext.current
val appTitle = if(!isSearchActive){
val appTitle = if (!isSearchActive) {
title
}else{
} else {
""
}
TopAppBar(
@ -88,7 +88,7 @@ fun AppBar(
}
)
if (isSearchActive) {
Row (modifier = Modifier.fillMaxWidth()) {
Row(modifier = Modifier.fillMaxWidth()) {
SearchComponent(
text = searchQuery,
onTextChange = { searchQuery ->

View File

@ -37,7 +37,7 @@ fun SearchComponent(
text: String,
onTextChange: (String) -> Unit,
onDisableSearch: () -> Unit,
modifier:Modifier = Modifier
modifier: Modifier = Modifier
) {
val keyboardController = LocalSoftwareKeyboardController.current
TextField(
@ -103,4 +103,3 @@ fun searchKeyboardActions(text: String, keyboardController: SoftwareKeyboardCont
}
}
)