mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-09 22:04:24 +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
|
package com.nextcloud.talk.contacts
|
||||||
|
|
||||||
import android.annotation.SuppressLint
|
|
||||||
import androidx.lifecycle.ViewModel
|
import androidx.lifecycle.ViewModel
|
||||||
import androidx.lifecycle.viewModelScope
|
import androidx.lifecycle.viewModelScope
|
||||||
import com.nextcloud.talk.models.json.autocomplete.AutocompleteUser
|
import com.nextcloud.talk.models.json.autocomplete.AutocompleteUser
|
||||||
@ -37,14 +36,11 @@ class ContactsViewModel @Inject constructor(
|
|||||||
private val _isAddParticipantsView = MutableStateFlow(false)
|
private val _isAddParticipantsView = MutableStateFlow(false)
|
||||||
val isAddParticipantsView: StateFlow<Boolean> = _isAddParticipantsView
|
val isAddParticipantsView: StateFlow<Boolean> = _isAddParticipantsView
|
||||||
|
|
||||||
@SuppressLint("PropertyName")
|
|
||||||
private val _enableAddButton = MutableStateFlow(false)
|
private val _enableAddButton = MutableStateFlow(false)
|
||||||
val enableAddButton: StateFlow<Boolean> = _enableAddButton
|
val enableAddButton: StateFlow<Boolean> = _enableAddButton
|
||||||
|
|
||||||
@SuppressLint("PropertyName")
|
|
||||||
private val _selectedContacts = MutableStateFlow<List<AutocompleteUser>>(emptyList())
|
private val _selectedContacts = MutableStateFlow<List<AutocompleteUser>>(emptyList())
|
||||||
|
|
||||||
@SuppressLint("PropertyName")
|
|
||||||
private val _clickAddButton = MutableStateFlow(false)
|
private val _clickAddButton = MutableStateFlow(false)
|
||||||
|
|
||||||
private var hideAlreadyAddedParticipants: Boolean = false
|
private var hideAlreadyAddedParticipants: Boolean = false
|
||||||
|
@ -50,9 +50,9 @@ fun AppBar(
|
|||||||
clickAddButton: (Boolean) -> Unit
|
clickAddButton: (Boolean) -> Unit
|
||||||
) {
|
) {
|
||||||
val context = LocalContext.current
|
val context = LocalContext.current
|
||||||
val appTitle = if(!isSearchActive){
|
val appTitle = if (!isSearchActive) {
|
||||||
title
|
title
|
||||||
}else{
|
} else {
|
||||||
""
|
""
|
||||||
}
|
}
|
||||||
TopAppBar(
|
TopAppBar(
|
||||||
@ -88,7 +88,7 @@ fun AppBar(
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
if (isSearchActive) {
|
if (isSearchActive) {
|
||||||
Row (modifier = Modifier.fillMaxWidth()) {
|
Row(modifier = Modifier.fillMaxWidth()) {
|
||||||
SearchComponent(
|
SearchComponent(
|
||||||
text = searchQuery,
|
text = searchQuery,
|
||||||
onTextChange = { searchQuery ->
|
onTextChange = { searchQuery ->
|
||||||
|
@ -37,7 +37,7 @@ fun SearchComponent(
|
|||||||
text: String,
|
text: String,
|
||||||
onTextChange: (String) -> Unit,
|
onTextChange: (String) -> Unit,
|
||||||
onDisableSearch: () -> Unit,
|
onDisableSearch: () -> Unit,
|
||||||
modifier:Modifier = Modifier
|
modifier: Modifier = Modifier
|
||||||
) {
|
) {
|
||||||
val keyboardController = LocalSoftwareKeyboardController.current
|
val keyboardController = LocalSoftwareKeyboardController.current
|
||||||
TextField(
|
TextField(
|
||||||
@ -103,4 +103,3 @@ fun searchKeyboardActions(text: String, keyboardController: SoftwareKeyboardCont
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user