Skip to content

Commit 79632c9

Browse files
committed
fix return to main when application icon is in use
1 parent 8f5b1b4 commit 79632c9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/java/com/geode/launcher/GeometryDashActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ class GeometryDashActivity : AppCompatActivity(), Cocos2dxHelper.Cocos2dxHelperL
145145
returnMessage: String? = null,
146146
returnExtendedMessage: String? = null
147147
) {
148-
val launchIntent = Intent(this, MainActivity::class.java).apply {
148+
val launchIntent = packageManager.getLaunchIntentForPackage(packageName)!!.apply {
149149
flags = Intent.FLAG_ACTIVITY_CLEAR_TASK or Intent.FLAG_ACTIVITY_NEW_TASK
150150

151151
if (error != null && !returnMessage.isNullOrEmpty()) {

0 commit comments

Comments
 (0)