From 91efa22b1af434fab70ac5522e26be78753b4868 Mon Sep 17 00:00:00 2001 From: Zachary Wander Date: Sat, 10 Feb 2024 10:17:49 -0500 Subject: [PATCH] Fix build --- .../systemuituner/activities/ReadSettingFailActivity.kt | 3 ++- .../systemuituner/activities/WriteSettingFailActivity.kt | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/zacharee1/systemuituner/activities/ReadSettingFailActivity.kt b/app/src/main/java/com/zacharee1/systemuituner/activities/ReadSettingFailActivity.kt index 2b3e4e9f3..340ac03c4 100644 --- a/app/src/main/java/com/zacharee1/systemuituner/activities/ReadSettingFailActivity.kt +++ b/app/src/main/java/com/zacharee1/systemuituner/activities/ReadSettingFailActivity.kt @@ -28,6 +28,7 @@ import com.zacharee1.systemuituner.util.openShizukuWebsite import com.zacharee1.systemuituner.util.shizukuServiceManager import dev.zwander.composeintroslider.IntroSlider import dev.zwander.composeintroslider.SimpleIntroPage +import java.io.Serializable class ReadSettingFailActivity : ComponentActivity() { companion object { @@ -37,7 +38,7 @@ class ReadSettingFailActivity : ComponentActivity() { fun start(context: Context, type: SettingsType, key: String?) { val intent = Intent(context, ReadSettingFailActivity::class.java) intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) - intent.putExtra(EXTRA_TYPE, type) + intent.putExtra(EXTRA_TYPE, type as Serializable) intent.putExtra(EXTRA_KEY, key) context.startActivity(intent) } diff --git a/app/src/main/java/com/zacharee1/systemuituner/activities/WriteSettingFailActivity.kt b/app/src/main/java/com/zacharee1/systemuituner/activities/WriteSettingFailActivity.kt index f5aa14a67..ae094225d 100644 --- a/app/src/main/java/com/zacharee1/systemuituner/activities/WriteSettingFailActivity.kt +++ b/app/src/main/java/com/zacharee1/systemuituner/activities/WriteSettingFailActivity.kt @@ -28,6 +28,7 @@ import com.zacharee1.systemuituner.util.openShizukuWebsite import com.zacharee1.systemuituner.util.shizukuServiceManager import dev.zwander.composeintroslider.IntroSlider import dev.zwander.composeintroslider.SimpleIntroPage +import java.io.Serializable class WriteSettingFailActivity : ComponentActivity() { companion object { @@ -38,7 +39,7 @@ class WriteSettingFailActivity : ComponentActivity() { fun start(context: Context, type: SettingsType, key: String, value: Any?) { val intent = Intent(context, WriteSettingFailActivity::class.java) intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) - intent.putExtra(EXTRA_TYPE, type) + intent.putExtra(EXTRA_TYPE, type as Serializable) intent.putExtra(EXTRA_KEY, key) intent.putExtra(EXTRA_VALUE, value?.toString()) context.startActivity(intent)