mirror of
https://github.com/bitfireAT/davx5-ose
synced 2024-07-22 19:21:09 +00:00
Minor lint
This commit is contained in:
parent
40795bf5c0
commit
0a4a06a50a
|
@ -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>>
|
||||
|
||||
}
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue