mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-09 13:59:48 +01:00
ktlintFormat
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
parent
05815ebeae
commit
87f8272b10
@ -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
|
||||
|
@ -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 ->
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user