2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-22 09:58:08 +00:00

Fix deprecation warning

This commit is contained in:
Albert Vaca Cintora 2025-02-26 21:32:39 +01:00
parent fbff23a8c0
commit 43d4f38765
No known key found for this signature in database
2 changed files with 3 additions and 1 deletions

View File

@ -134,6 +134,7 @@ class PresenterActivity : AppCompatActivity(), SensorEventListener {
modifier = Modifier.padding(bottom = 8.dp).padding(horizontal = 16.dp), modifier = Modifier.padding(bottom = 8.dp).padding(horizontal = 16.dp),
style = MaterialTheme.typography.bodyLarge, style = MaterialTheme.typography.bodyLarge,
) )
@Suppress("DEPRECATION") // we explicitly want the non-mirrored version of the icons
Row( Row(
modifier = Modifier.fillMaxSize().weight(3f), modifier = Modifier.fillMaxSize().weight(3f),
horizontalArrangement = Arrangement.spacedBy(20.dp), horizontalArrangement = Arrangement.spacedBy(20.dp),

View File

@ -8,6 +8,7 @@ package org.kde.kdeconnect.UserInterface.compose
import androidx.compose.foundation.layout.RowScope import androidx.compose.foundation.layout.RowScope
import androidx.compose.material.icons.Icons 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.ArrowBack
import androidx.compose.material3.* import androidx.compose.material3.*
import androidx.compose.runtime.Composable import androidx.compose.runtime.Composable
@ -19,7 +20,7 @@ import org.kde.kdeconnect_tp.R
@Composable @Composable
fun KdeTopAppBar( fun KdeTopAppBar(
title: String = stringResource(R.string.kde_connect), title: String = stringResource(R.string.kde_connect),
navIcon: ImageVector = Icons.Default.ArrowBack, navIcon: ImageVector = Icons.AutoMirrored.Filled.ArrowBack,
navIconDescription: String = "", navIconDescription: String = "",
navIconOnClick: () -> Unit, // = { onBackPressedDispatcher.onBackPressed() } navIconOnClick: () -> Unit, // = { onBackPressedDispatcher.onBackPressed() }
actions: @Composable (RowScope.() -> Unit) = {}, actions: @Composable (RowScope.() -> Unit) = {},