From d1f74df6866a3697146fec401683e880b6d9ce46 Mon Sep 17 00:00:00 2001 From: Miku AuahDark Date: Mon, 25 Dec 2023 12:23:18 +0800 Subject: [PATCH] Don't set the intent to null, only set the intent data to null. Issue #260. --- love/src/main/java/org/love2d/android/GameActivity.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/love/src/main/java/org/love2d/android/GameActivity.java b/love/src/main/java/org/love2d/android/GameActivity.java index 5487b6c4..fb549273 100644 --- a/love/src/main/java/org/love2d/android/GameActivity.java +++ b/love/src/main/java/org/love2d/android/GameActivity.java @@ -117,8 +117,9 @@ protected void onCreate(Bundle savedInstanceState) { needToCopyGameInArchive = embed; if (!embed) { - handleIntent(getIntent()); - setIntent(null); + Intent intent = getIntent(); + handleIntent(intent); + intent.setData(null); } super.onCreate(savedInstanceState);