Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharee committed Feb 10, 2024
1 parent a63f738 commit 91efa22
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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)
Expand Down

0 comments on commit 91efa22

Please sign in to comment.