Minor lint

This commit is contained in:
Ricki Hirner 2024-04-30 11:49:01 +02:00
parent 40795bf5c0
commit 0a4a06a50a
4 changed files with 6 additions and 4 deletions

View file

@ -8,6 +8,7 @@ import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.Query
import androidx.room.Transaction
import kotlinx.coroutines.flow.Flow
@Dao
@ -32,6 +33,7 @@ interface WebDavMountDao {
// complex queries
@Query("SELECT * FROM webdav_mount ORDER BY name, url")
@Transaction
fun getAllWithRootDocumentFlow(): Flow<List<WebDavMountWithRootDocument>>
}

View file

@ -151,6 +151,7 @@ class AccountsModel @Inject constructor(
).map { connectivityManager.restrictBackgroundStatus == ConnectivityManager.RESTRICT_BACKGROUND_STATUS_ENABLED }
/** whether storage is low (prevents sync framework from running synchronization) */
@Suppress("DEPRECATION")
val storageLow =
broadcastReceiverFlow(
context = context,

View file

@ -442,8 +442,6 @@ fun AccountScreen_Actions(
onDeleteAccount: () -> Unit,
onAccountSettings: () -> Unit
) {
val context = LocalContext.current
var showDeleteAccountDialog by remember { mutableStateOf(false) }
var showRenameAccountDialog by remember { mutableStateOf(false) }
@ -641,7 +639,7 @@ fun AccountScreen_ServiceTab(
fun AccountScreen_Preview() {
AccountScreen(
accountName = "test@example.com",
showOnlyPersonal = AccountSettings.ShowOnlyPersonal(false, true),
showOnlyPersonal = AccountSettings.ShowOnlyPersonal(onlyPersonal = false, locked = true),
hasCardDav = true,
canCreateAddressBook = false,
cardDavProgress = AccountProgress.Active,

View file

@ -19,6 +19,7 @@ import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.text.selection.SelectionContainer
import androidx.compose.foundation.verticalScroll
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.automirrored.filled.ArrowBack
import androidx.compose.material.icons.filled.AccountBox
import androidx.compose.material.icons.filled.ArrowBack
import androidx.compose.material.icons.filled.CloudSync
@ -139,7 +140,7 @@ fun CollectionScreen(
MediumTopAppBar(
navigationIcon = {
IconButton(onClick = onNavUp) {
Icon(Icons.Filled.ArrowBack, contentDescription = stringResource(R.string.navigate_up))
Icon(Icons.AutoMirrored.Default.ArrowBack, contentDescription = stringResource(R.string.navigate_up))
}
},
title = {