We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 655587e commit 0de077eCopy full SHA for 0de077e
1 file changed
app/src/main/java/com/geode/launcher/preferences/SettingsActivity.kt
@@ -497,7 +497,7 @@ fun GameplaySettingsGroup() {
497
SafeModeDialog(onDismiss = {
498
showSafeModeDialog = false
499
}) {
500
- val launchIntent = Intent(context, MainActivity::class.java).apply {
+ val launchIntent = context.packageManager.getLaunchIntentForPackage(context.packageName)!!.apply {
501
// hardcode it, why not
502
action = Intent.ACTION_VIEW
503
data = "geode-launcher://main/launch?safe-mode=true".toUri()
0 commit comments