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)