manager: tweaked aboutcard vector image & fixed homescreen composition lag

This commit is contained in:
Rifat Azad
2024-12-16 19:03:00 +06:00
parent 11761a7c03
commit 78fa474d24
4 changed files with 12 additions and 6 deletions

View File

@@ -74,7 +74,7 @@ private fun AboutCardContent() {
Image( Image(
painter = painterResource(id = R.drawable.ic_launcher_foreground), painter = painterResource(id = R.drawable.ic_launcher_foreground),
contentDescription = "icon", contentDescription = "icon",
modifier = Modifier.scale(1.4f) modifier = Modifier.scale(1.2f)
) )
} }

View File

@@ -3,6 +3,8 @@ package me.weishu.kernelsu.ui.screen
import android.content.Context import android.content.Context
import android.os.Build import android.os.Build
import android.os.PowerManager import android.os.PowerManager
import android.os.Handler
import android.os.Looper
import android.system.Os import android.system.Os
import androidx.annotation.StringRes import androidx.annotation.StringRes
import androidx.compose.animation.* import androidx.compose.animation.*
@@ -67,7 +69,11 @@ fun HomeScreen(navigator: DestinationsNavigator) {
) { ) {
val isManager = Natives.becomeManager(ksuApp.packageName) val isManager = Natives.becomeManager(ksuApp.packageName)
SideEffect { SideEffect {
if (isManager) install() if (isManager) {
Handler(Looper.getMainLooper()).postDelayed({
install()
}, 4000)
}
} }
val ksuVersion = if (isManager) Natives.version else null val ksuVersion = if (isManager) Natives.version else null
val lkmMode = ksuVersion?.let { val lkmMode = ksuVersion?.let {

View File

@@ -6,7 +6,7 @@
android:viewportHeight="108"> android:viewportHeight="108">
<path <path
android:fillColor="#000000" android:fillColor="#FFFFFF"
android:pathData="M53.8 35.7c-4.4 0-7.8-3.5-7.8-7.8 0-4.3 3.4-7.8 7.8-7.8 4.3 0 7.8 3.5 7.8 7.8 0 4.3-3.5 7.8-7.8 7.8z" /> android:pathData="M53.8 35.7c-4.4 0-7.8-3.5-7.8-7.8 0-4.3 3.4-7.8 7.8-7.8 4.3 0 7.8 3.5 7.8 7.8 0 4.3-3.5 7.8-7.8 7.8z" />
<path <path
android:fillColor="#000000" android:fillColor="#000000"
@@ -20,7 +20,7 @@
android:fillType="evenOdd" android:fillType="evenOdd"
android:pathData="M53.8 4.5c27.2 0 49.3 22 49.3 49.3 0 27.1-21.9 49-49 49.3 13.5-0.3 24.3-11.2 24.3-24.6 0-13.6-11.1-24.6-24.6-24.6-13.6 0-24.7-11-24.7-24.7 0-13.5 10.8-24.5 24.2-24.6 0.2-0.1 0.4-0.1 0.5-0.1zm7.8 23.4c0-4.3-3.5-7.8-7.8-7.8-4.4 0-7.8 3.5-7.8 7.8 0 4.3 3.4 7.8 7.8 7.8 4.3 0 7.8-3.5 7.8-7.8z" /> android:pathData="M53.8 4.5c27.2 0 49.3 22 49.3 49.3 0 27.1-21.9 49-49 49.3 13.5-0.3 24.3-11.2 24.3-24.6 0-13.6-11.1-24.6-24.6-24.6-13.6 0-24.7-11-24.7-24.7 0-13.5 10.8-24.5 24.2-24.6 0.2-0.1 0.4-0.1 0.5-0.1zm7.8 23.4c0-4.3-3.5-7.8-7.8-7.8-4.4 0-7.8 3.5-7.8 7.8 0 4.3 3.4 7.8 7.8 7.8 4.3 0 7.8-3.5 7.8-7.8z" />
<path <path
android:fillColor="#000000" android:fillColor="#FFFFFF"
android:fillType="evenOdd" android:fillType="evenOdd"
android:pathData="M53.8 53.8c13.5 0 24.6 11 24.6 24.6 0 13.4-10.8 24.4-24.3 24.5h-0.3c-27.3 0.2-49.3-21.9-49.3-49.1 0-27.1 21.8-49.1 48.9-49.3-13.4 0.2-24.2 11.1-24.2 24.6 0 13.6 11 24.7 24.6 24.7zm7.8 25.8c0-4.3-3.5-7.8-7.8-7.8-4.4 0-7.8 3.5-7.8 7.8 0 4.3 3.4 7.8 7.8 7.8 4.3 0 7.8-3.5 7.8-7.8z" /> android:pathData="M53.8 53.8c13.5 0 24.6 11 24.6 24.6 0 13.4-10.8 24.4-24.3 24.5h-0.3c-27.3 0.2-49.3-21.9-49.3-49.1 0-27.1 21.8-49.1 48.9-49.3-13.4 0.2-24.2 11.1-24.2 24.6 0 13.6 11 24.7 24.6 24.7zm7.8 25.8c0-4.3-3.5-7.8-7.8-7.8-4.4 0-7.8 3.5-7.8 7.8 0 4.3 3.4 7.8 7.8 7.8 4.3 0 7.8-3.5 7.8-7.8z" />
</vector> </vector>

View File

@@ -6,7 +6,7 @@
android:viewportHeight="108"> android:viewportHeight="108">
<path <path
android:fillColor="#000000" android:fillColor="#FFFFFF"
android:pathData="M53.8 35.7c-4.4 0-7.8-3.5-7.8-7.8 0-4.3 3.4-7.8 7.8-7.8 4.3 0 7.8 3.5 7.8 7.8 0 4.3-3.5 7.8-7.8 7.8z" /> android:pathData="M53.8 35.7c-4.4 0-7.8-3.5-7.8-7.8 0-4.3 3.4-7.8 7.8-7.8 4.3 0 7.8 3.5 7.8 7.8 0 4.3-3.5 7.8-7.8 7.8z" />
<path <path
android:fillColor="#000000" android:fillColor="#000000"
@@ -20,7 +20,7 @@
android:fillType="evenOdd" android:fillType="evenOdd"
android:pathData="M53.8 4.5c27.2 0 49.3 22 49.3 49.3 0 27.1-21.9 49-49 49.3 13.5-0.3 24.3-11.2 24.3-24.6 0-13.6-11.1-24.6-24.6-24.6-13.6 0-24.7-11-24.7-24.7 0-13.5 10.8-24.5 24.2-24.6 0.2-0.1 0.4-0.1 0.5-0.1zm7.8 23.4c0-4.3-3.5-7.8-7.8-7.8-4.4 0-7.8 3.5-7.8 7.8 0 4.3 3.4 7.8 7.8 7.8 4.3 0 7.8-3.5 7.8-7.8z" /> android:pathData="M53.8 4.5c27.2 0 49.3 22 49.3 49.3 0 27.1-21.9 49-49 49.3 13.5-0.3 24.3-11.2 24.3-24.6 0-13.6-11.1-24.6-24.6-24.6-13.6 0-24.7-11-24.7-24.7 0-13.5 10.8-24.5 24.2-24.6 0.2-0.1 0.4-0.1 0.5-0.1zm7.8 23.4c0-4.3-3.5-7.8-7.8-7.8-4.4 0-7.8 3.5-7.8 7.8 0 4.3 3.4 7.8 7.8 7.8 4.3 0 7.8-3.5 7.8-7.8z" />
<path <path
android:fillColor="#000000" android:fillColor="#FFFFFF"
android:fillType="evenOdd" android:fillType="evenOdd"
android:pathData="M53.8 53.8c13.5 0 24.6 11 24.6 24.6 0 13.4-10.8 24.4-24.3 24.5h-0.3c-27.3 0.2-49.3-21.9-49.3-49.1 0-27.1 21.8-49.1 48.9-49.3-13.4 0.2-24.2 11.1-24.2 24.6 0 13.6 11 24.7 24.6 24.7zm7.8 25.8c0-4.3-3.5-7.8-7.8-7.8-4.4 0-7.8 3.5-7.8 7.8 0 4.3 3.4 7.8 7.8 7.8 4.3 0 7.8-3.5 7.8-7.8z" /> android:pathData="M53.8 53.8c13.5 0 24.6 11 24.6 24.6 0 13.4-10.8 24.4-24.3 24.5h-0.3c-27.3 0.2-49.3-21.9-49.3-49.1 0-27.1 21.8-49.1 48.9-49.3-13.4 0.2-24.2 11.1-24.2 24.6 0 13.6 11 24.7 24.6 24.7zm7.8 25.8c0-4.3-3.5-7.8-7.8-7.8-4.4 0-7.8 3.5-7.8 7.8 0 4.3 3.4 7.8 7.8 7.8 4.3 0 7.8-3.5 7.8-7.8z" />
</vector> </vector>