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:
parent
fbff23a8c0
commit
43d4f38765
@ -134,6 +134,7 @@ class PresenterActivity : AppCompatActivity(), SensorEventListener {
|
||||
modifier = Modifier.padding(bottom = 8.dp).padding(horizontal = 16.dp),
|
||||
style = MaterialTheme.typography.bodyLarge,
|
||||
)
|
||||
@Suppress("DEPRECATION") // we explicitly want the non-mirrored version of the icons
|
||||
Row(
|
||||
modifier = Modifier.fillMaxSize().weight(3f),
|
||||
horizontalArrangement = Arrangement.spacedBy(20.dp),
|
||||
|
@ -8,6 +8,7 @@ package org.kde.kdeconnect.UserInterface.compose
|
||||
|
||||
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.material3.*
|
||||
import androidx.compose.runtime.Composable
|
||||
@ -19,7 +20,7 @@ import org.kde.kdeconnect_tp.R
|
||||
@Composable
|
||||
fun KdeTopAppBar(
|
||||
title: String = stringResource(R.string.kde_connect),
|
||||
navIcon: ImageVector = Icons.Default.ArrowBack,
|
||||
navIcon: ImageVector = Icons.AutoMirrored.Filled.ArrowBack,
|
||||
navIconDescription: String = "",
|
||||
navIconOnClick: () -> Unit, // = { onBackPressedDispatcher.onBackPressed() }
|
||||
actions: @Composable (RowScope.() -> Unit) = {},
|
||||
|
Loading…
x
Reference in New Issue
Block a user