mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 03:59:35 +01:00
Ktlint Format
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
parent
52378327f9
commit
ecb3d5380c
@ -225,10 +225,7 @@ fun ContactItemRow(
|
|||||||
@SuppressLint("UnrememberedMutableState")
|
@SuppressLint("UnrememberedMutableState")
|
||||||
@OptIn(ExperimentalMaterial3Api::class)
|
@OptIn(ExperimentalMaterial3Api::class)
|
||||||
@Composable
|
@Composable
|
||||||
fun AppBar(
|
fun AppBar(title: String, context: Context, contactsViewModel: ContactsViewModel) {
|
||||||
title: String,
|
|
||||||
context: Context,
|
|
||||||
contactsViewModel: ContactsViewModel) {
|
|
||||||
val searchQuery by contactsViewModel.searchQuery.collectAsState()
|
val searchQuery by contactsViewModel.searchQuery.collectAsState()
|
||||||
val searchState = contactsViewModel.searchState.collectAsState()
|
val searchState = contactsViewModel.searchState.collectAsState()
|
||||||
val isAddParticipants = contactsViewModel.isAddParticipantsView.collectAsState()
|
val isAddParticipants = contactsViewModel.isAddParticipantsView.collectAsState()
|
||||||
@ -283,9 +280,7 @@ fun AppBar(
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun ConversationCreationOptions(
|
fun ConversationCreationOptions(context: Context, contactsViewModel: ContactsViewModel) {
|
||||||
context: Context,
|
|
||||||
contactsViewModel: ContactsViewModel) {
|
|
||||||
val isAddParticipants by contactsViewModel.isAddParticipantsView.collectAsState()
|
val isAddParticipants by contactsViewModel.isAddParticipantsView.collectAsState()
|
||||||
if (!isAddParticipants) {
|
if (!isAddParticipants) {
|
||||||
Column {
|
Column {
|
||||||
|
@ -102,9 +102,7 @@ class ConversationCreationActivity : BaseActivity() {
|
|||||||
|
|
||||||
@OptIn(ExperimentalMaterial3Api::class)
|
@OptIn(ExperimentalMaterial3Api::class)
|
||||||
@Composable
|
@Composable
|
||||||
fun ConversationCreationScreen(
|
fun ConversationCreationScreen(conversationCreationViewModel: ConversationCreationViewModel, context: Context) {
|
||||||
conversationCreationViewModel: ConversationCreationViewModel,
|
|
||||||
context: Context) {
|
|
||||||
val launcher = rememberLauncherForActivityResult(
|
val launcher = rememberLauncherForActivityResult(
|
||||||
contract = ActivityResultContracts.StartActivityForResult(),
|
contract = ActivityResultContracts.StartActivityForResult(),
|
||||||
|
|
||||||
@ -215,9 +213,7 @@ fun UploadAvatar() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun ConversationNameAndDescription(
|
fun ConversationNameAndDescription(conversationCreationViewModel: ConversationCreationViewModel) {
|
||||||
conversationCreationViewModel: ConversationCreationViewModel
|
|
||||||
) {
|
|
||||||
val conversationRoomName = conversationCreationViewModel.roomName.collectAsState()
|
val conversationRoomName = conversationCreationViewModel.roomName.collectAsState()
|
||||||
val conversationDescription = conversationCreationViewModel.conversationDescription.collectAsState()
|
val conversationDescription = conversationCreationViewModel.conversationDescription.collectAsState()
|
||||||
OutlinedTextField(
|
OutlinedTextField(
|
||||||
@ -330,9 +326,7 @@ fun AddParticipants(
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun RoomCreationOptions(
|
fun RoomCreationOptions(conversationCreationViewModel: ConversationCreationViewModel) {
|
||||||
conversationCreationViewModel: ConversationCreationViewModel
|
|
||||||
) {
|
|
||||||
val isGuestsAllowed = conversationCreationViewModel.isGuestsAllowed.value
|
val isGuestsAllowed = conversationCreationViewModel.isGuestsAllowed.value
|
||||||
val isConversationAvailableForRegisteredUsers = conversationCreationViewModel
|
val isConversationAvailableForRegisteredUsers = conversationCreationViewModel
|
||||||
.isConversationAvailableForRegisteredUsers.value
|
.isConversationAvailableForRegisteredUsers.value
|
||||||
@ -451,10 +445,7 @@ fun ConversationOptions(
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun ShowPasswordDialog(
|
fun ShowPasswordDialog(onDismiss: () -> Unit, conversationCreationViewModel: ConversationCreationViewModel) {
|
||||||
onDismiss: () -> Unit,
|
|
||||||
conversationCreationViewModel: ConversationCreationViewModel
|
|
||||||
) {
|
|
||||||
var password by remember { mutableStateOf("") }
|
var password by remember { mutableStateOf("") }
|
||||||
|
|
||||||
AlertDialog(
|
AlertDialog(
|
||||||
@ -486,10 +477,7 @@ fun ShowPasswordDialog(
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun CreateConversation(
|
fun CreateConversation(conversationCreationViewModel: ConversationCreationViewModel, context: Context) {
|
||||||
conversationCreationViewModel: ConversationCreationViewModel,
|
|
||||||
context: Context
|
|
||||||
) {
|
|
||||||
val selectedParticipants by conversationCreationViewModel.selectedParticipants.collectAsState()
|
val selectedParticipants by conversationCreationViewModel.selectedParticipants.collectAsState()
|
||||||
Box(
|
Box(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
|
Loading…
Reference in New Issue
Block a user