Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
Fix deprecations from material icons
Browse files Browse the repository at this point in the history
  • Loading branch information
M3DZIK committed Feb 28, 2024
1 parent 7988403 commit 8558257
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import androidx.compose.foundation.layout.heightIn
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.automirrored.filled.Notes
import androidx.compose.material.icons.filled.CreditCard
import androidx.compose.material.icons.filled.MoreHoriz
import androidx.compose.material.icons.filled.Notes
Expand All @@ -38,7 +39,6 @@ import dev.medzik.librepass.android.utils.shorten
import dev.medzik.librepass.client.api.CipherClient
import dev.medzik.librepass.types.cipher.Cipher
import dev.medzik.librepass.types.cipher.CipherType
import org.bouncycastle.asn1.x500.style.RFC4519Style.title

@OptIn(ExperimentalFoundationApi::class)
@Composable
Expand Down Expand Up @@ -80,7 +80,7 @@ fun CipherCard(
}
CipherType.SecureNote -> {
Image(
Icons.Default.Notes,
Icons.AutoMirrored.Filled.Notes,
contentDescription = null,
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ import com.journeyapps.barcodescanner.CaptureManager
import com.journeyapps.barcodescanner.DecoratedBarcodeView

@Composable
fun QrCodeScanner(
blockAfterFound: Boolean = false,
onScanned: (String) -> Unit
) {
fun QrCodeScanner(onScanned: (String) -> Unit) {
val context = LocalContext.current

val compoundBarcodeView =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package dev.medzik.librepass.android.ui.components
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.RowScope
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.automirrored.filled.ArrowBack
import androidx.compose.material.icons.filled.ArrowBack
import androidx.compose.material.icons.filled.MoreHoriz
import androidx.compose.material3.ExperimentalMaterial3Api
Expand Down Expand Up @@ -102,7 +103,7 @@ fun TopBarTwoColorPreview() {
fun TopBarBackIcon(navController: NavController) {
IconButton(onClick = { navController.popBackStack() }) {
Icon(
imageVector = Icons.Default.ArrowBack,
imageVector = Icons.AutoMirrored.Filled.ArrowBack,
contentDescription = null
)
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package dev.medzik.librepass.android.ui.screens.settings

import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.automirrored.filled.Logout
import androidx.compose.material.icons.filled.Email
import androidx.compose.material.icons.filled.LockReset
import androidx.compose.material.icons.filled.Logout
Expand Down Expand Up @@ -36,7 +37,7 @@ fun SettingsAccountScreen(

PreferenceEntry(
title = stringResource(R.string.Logout),
icon = { Icon(Icons.Default.Logout, contentDescription = null) },
icon = { Icon(Icons.AutoMirrored.Filled.Logout, contentDescription = null) },
onClick = {
runBlocking {
val credentials = viewModel.credentialRepository.get()!!
Expand Down

0 comments on commit 8558257

Please sign in to comment.