mirror of
https://github.com/bitwarden/android.git
synced 2025-02-18 21:09:55 +03:00
Fix minor lint errors (#660)
This commit is contained in:
parent
ff361a7b61
commit
d0d1e669d1
5 changed files with 5 additions and 9 deletions
|
@ -34,7 +34,6 @@ import androidx.compose.ui.ExperimentalComposeUiApi
|
||||||
import androidx.compose.ui.Modifier
|
import androidx.compose.ui.Modifier
|
||||||
import androidx.compose.ui.graphics.ColorFilter
|
import androidx.compose.ui.graphics.ColorFilter
|
||||||
import androidx.compose.ui.input.nestedscroll.nestedScroll
|
import androidx.compose.ui.input.nestedscroll.nestedScroll
|
||||||
import androidx.compose.ui.platform.LocalContext
|
|
||||||
import androidx.compose.ui.res.painterResource
|
import androidx.compose.ui.res.painterResource
|
||||||
import androidx.compose.ui.res.stringResource
|
import androidx.compose.ui.res.stringResource
|
||||||
import androidx.compose.ui.semantics.semantics
|
import androidx.compose.ui.semantics.semantics
|
||||||
|
@ -179,7 +178,6 @@ fun LandingScreen(
|
||||||
.fillMaxSize(),
|
.fillMaxSize(),
|
||||||
)
|
)
|
||||||
|
|
||||||
val context = LocalContext.current
|
|
||||||
BitwardenAccountSwitcher(
|
BitwardenAccountSwitcher(
|
||||||
isVisible = isAccountMenuVisible,
|
isVisible = isAccountMenuVisible,
|
||||||
accountSummaries = state.accountSummaries.toImmutableList(),
|
accountSummaries = state.accountSummaries.toImmutableList(),
|
||||||
|
|
|
@ -28,8 +28,6 @@ import kotlinx.parcelize.Parcelize
|
||||||
* Represents a Bitwarden-styled loading dialog that shows text and a circular progress indicator.
|
* Represents a Bitwarden-styled loading dialog that shows text and a circular progress indicator.
|
||||||
*
|
*
|
||||||
* @param visibilityState the [LoadingDialogState] used to populate the dialog.
|
* @param visibilityState the [LoadingDialogState] used to populate the dialog.
|
||||||
* @param onDismissRequest called when the user has requested to dismiss the dialog, whether by
|
|
||||||
* * tapping "OK", tapping outside the dialog, or pressing the back button
|
|
||||||
*/
|
*/
|
||||||
@OptIn(ExperimentalMaterial3Api::class)
|
@OptIn(ExperimentalMaterial3Api::class)
|
||||||
@Composable
|
@Composable
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package com.x8bit.bitwarden.ui.tools.feature.generator.model
|
package com.x8bit.bitwarden.ui.tools.feature.generator.model
|
||||||
|
|
||||||
import android.os.Parcelable
|
import android.os.Parcelable
|
||||||
import kotlinx.android.parcel.Parcelize
|
import kotlinx.parcelize.Parcelize
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A sealed class representing the mode in which the generator displays.
|
* A sealed class representing the mode in which the generator displays.
|
||||||
|
|
|
@ -98,9 +98,9 @@ class FakeAuthDiskSource : AuthDiskSource {
|
||||||
override fun storePinProtectedUserKey(
|
override fun storePinProtectedUserKey(
|
||||||
userId: String,
|
userId: String,
|
||||||
pinProtectedUserKey: String?,
|
pinProtectedUserKey: String?,
|
||||||
isInMemoryOnly: Boolean,
|
inMemoryOnly: Boolean,
|
||||||
) {
|
) {
|
||||||
storedPinProtectedUserKeys[userId] = pinProtectedUserKey to isInMemoryOnly
|
storedPinProtectedUserKeys[userId] = pinProtectedUserKey to inMemoryOnly
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun getEncryptedPin(userId: String): String? =
|
override fun getEncryptedPin(userId: String): String? =
|
||||||
|
|
|
@ -688,7 +688,7 @@ class VaultRepositoryTest {
|
||||||
storePinProtectedUserKey(
|
storePinProtectedUserKey(
|
||||||
userId = userId,
|
userId = userId,
|
||||||
pinProtectedUserKey = null,
|
pinProtectedUserKey = null,
|
||||||
isInMemoryOnly = true,
|
inMemoryOnly = true,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -741,7 +741,7 @@ class VaultRepositoryTest {
|
||||||
storePinProtectedUserKey(
|
storePinProtectedUserKey(
|
||||||
userId = userId,
|
userId = userId,
|
||||||
pinProtectedUserKey = null,
|
pinProtectedUserKey = null,
|
||||||
isInMemoryOnly = true,
|
inMemoryOnly = true,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue