Fix linting issue

This commit is contained in:
wingio 2023-04-08 18:29:52 -04:00
parent b80d1fcb72
commit 271ba5bdf3
4 changed files with 43 additions and 32 deletions

View file

@ -35,7 +35,7 @@
android:supportsRtl="true"
android:theme="@style/Theme.VendettaManager"
android:name=".ManagerApplication"
tools:targetApi="31">
tools:targetApi="tiramisu">
<activity
android:name=".ui.activity.MainActivity"
android:exported="true"

View file

@ -1,5 +1,6 @@
package dev.beefers.vendetta.manager.domain.manager
import android.annotation.SuppressLint
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
@ -51,6 +52,8 @@ class InstallManager(
val callbackIntent = Intent(context, InstallService::class.java).apply {
action = "vendetta.actions.ACTION_UNINSTALL"
}
@SuppressLint("UnspecifiedImmutableFlag")
val contentIntent = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
PendingIntent.getService(context, 0, callbackIntent, PendingIntent.FLAG_MUTABLE)
} else {

View file

@ -1,8 +1,10 @@
package dev.beefers.vendetta.manager.ui.screen.home
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.basicMarquee
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
@ -69,6 +71,7 @@ class HomeScreen : ManagerTab {
unselectedIcon = Icons.Outlined.Home
)
@OptIn(ExperimentalFoundationApi::class)
@Composable
override fun Content() {
val nav = LocalNavigator.currentOrThrow
@ -146,7 +149,12 @@ class HomeScreen : ManagerTab {
latestVersion > currentVersion -> R.string.action_update
else -> R.string.msg_downgrade
}
Text(stringResource(label))
Text(
text = stringResource(label),
textAlign = TextAlign.Center,
maxLines = 1,
modifier = Modifier.basicMarquee().fillMaxWidth()
)
}
AnimatedVisibility(visible = viewModel.installManager.current != null) {

View file

@ -1,33 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
<locale-config xmlns:android="http://schemas.android.com/apk/res/android">
<locale android:name="af-rZA"/>
<locale android:name="ar-rSA"/>
<locale android:name="ca-rES"/>
<locale android:name="cs-rCZ"/>
<locale android:name="da-rDK"/>
<locale android:name="de-rDE"/>
<locale android:name="el-rGR"/>
<locale android:name="en-rUS"/>
<locale android:name="es-rES"/>
<locale android:name="fi-rFI"/>
<locale android:name="fr-rFR"/>
<locale android:name="hu-rHU"/>
<locale android:name="it-rIT"/>
<locale android:name="iw-rIL"/>
<locale android:name="ja-rJP"/>
<locale android:name="ko-rKR"/>
<locale android:name="nl-rNL"/>
<locale android:name="no-rNO"/>
<locale android:name="pl-rPL"/>
<locale android:name="pt-rBR"/>
<locale android:name="pt-rPT"/>
<locale android:name="ro-rRO"/>
<locale android:name="ru-rRU"/>
<locale android:name="sr-rSP"/>
<locale android:name="sv-rSE"/>
<locale android:name="tr-rTR"/>
<locale android:name="uk-rUA"/>
<locale android:name="vi-rVN"/>
<locale android:name="zh-rCN"/>
<locale android:name="zh-rTW"/>
<locale android:name="af-ZA"/>
<locale android:name="ar-SA"/>
<locale android:name="ca-ES"/>
<locale android:name="cs-CZ"/>
<locale android:name="da-DK"/>
<locale android:name="de-DE"/>
<locale android:name="el-GR"/>
<locale android:name="en-US"/>
<locale android:name="es-ES"/>
<locale android:name="fi-FI"/>
<locale android:name="fr-FR"/>
<locale android:name="hu-HU"/>
<locale android:name="it-IT"/>
<locale android:name="iw-IL"/>
<locale android:name="ja-JP"/>
<locale android:name="ko-KR"/>
<locale android:name="nl-NL"/>
<locale android:name="no-NO"/>
<locale android:name="pl-PL"/>
<locale android:name="pt-BR"/>
<locale android:name="pt-PT"/>
<locale android:name="ro-RO"/>
<locale android:name="ru-RU"/>
<locale android:name="sr-SP"/>
<locale android:name="sv-SE"/>
<locale android:name="tr-TR"/>
<locale android:name="uk-UA"/>
<locale android:name="vi-VN"/>
<locale android:name="zh-CN"/>
<locale android:name="zh-TW"/>
</locale-config>