mirror of
https://github.com/geode-sdk/android-launcher.git
synced 2026-10-21 16:32:39 +00:00
fix return to main when application icon is in use
This commit is contained in:
1 file changed
+1
-1
@@ -145,7 +145,7 @@ class GeometryDashActivity : AppCompatActivity(), Cocos2dxHelper.Cocos2dxHelperL
|
|||||||
returnMessage: String? = null,
|
returnMessage: String? = null,
|
||||||
returnExtendedMessage: String? = null
|
returnExtendedMessage: String? = null
|
||||||
) {
|
) {
|
||||||
val launchIntent = Intent(this, MainActivity::class.java).apply {
|
val launchIntent = packageManager.getLaunchIntentForPackage(packageName)!!.apply {
|
||||||
flags = Intent.FLAG_ACTIVITY_CLEAR_TASK or Intent.FLAG_ACTIVITY_NEW_TASK
|
flags = Intent.FLAG_ACTIVITY_CLEAR_TASK or Intent.FLAG_ACTIVITY_NEW_TASK
|
||||||
|
|
||||||
if (error != null && !returnMessage.isNullOrEmpty()) {
|
if (error != null && !returnMessage.isNullOrEmpty()) {
|
||||||
|
|||||||
Reference in new issue
Block a user