diff --git a/src/android/app/.gitignore b/src/android/app/.gitignore index d12cebb5..5a84e626 100644 --- a/src/android/app/.gitignore +++ b/src/android/app/.gitignore @@ -1,4 +1,4 @@ /build -assets/hash.txt +/src/main/assets/hash.txt *.po *.pot diff --git a/src/android/app/src/main/java/info/cemu/cemu/gamelist/GameDetailsScreen.kt b/src/android/app/src/main/java/info/cemu/cemu/gamelist/GameDetailsScreen.kt index 756220f4..1c642a21 100644 --- a/src/android/app/src/main/java/info/cemu/cemu/gamelist/GameDetailsScreen.kt +++ b/src/android/app/src/main/java/info/cemu/cemu/gamelist/GameDetailsScreen.kt @@ -6,7 +6,6 @@ import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.size import androidx.compose.material3.Text import androidx.compose.runtime.Composable -import androidx.compose.runtime.ReadOnlyComposable import androidx.compose.ui.Modifier import androidx.compose.ui.text.font.FontWeight import androidx.compose.ui.unit.dp @@ -63,8 +62,6 @@ fun GameDetails(game: Game) { } -@ReadOnlyComposable -@Composable private fun getTimePlayed(game: Game): String { if (game.minutesPlayed == 0) { return tr("Never played") @@ -83,8 +80,6 @@ private val DateFormatter = DateTimeFormatter.ofLocalizedDate( FormatStyle.SHORT ) -@ReadOnlyComposable -@Composable private fun getLastPlayedDate(game: Game): String { if (game.lastPlayedYear.toInt() == 0) { return tr("Never played") diff --git a/src/android/app/src/main/java/info/cemu/cemu/inputoverlay/InputOverlaySettingsManager.kt b/src/android/app/src/main/java/info/cemu/cemu/inputoverlay/InputOverlaySettingsManager.kt index c9e9fb73..c47bce98 100644 --- a/src/android/app/src/main/java/info/cemu/cemu/inputoverlay/InputOverlaySettingsManager.kt +++ b/src/android/app/src/main/java/info/cemu/cemu/inputoverlay/InputOverlaySettingsManager.kt @@ -4,18 +4,14 @@ import android.content.Context import android.content.SharedPreferences import android.graphics.Rect import android.util.DisplayMetrics.DENSITY_DEFAULT -import androidx.annotation.IntRange import info.cemu.cemu.R -import info.cemu.cemu.nativeinterface.NativeInput import kotlin.math.max import kotlin.math.min class OverlaySettings( var isVibrateOnTouchEnabled: Boolean, var isOverlayEnabled: Boolean, - @IntRange(0, (NativeInput.MAX_CONTROLLERS - 1L)) var controllerIndex: Int, - @IntRange(0, 255) var alpha: Int, ) { companion object {