Skip to content

Commit

Permalink
Don't set the intent to null, only set the intent data to null.
Browse files Browse the repository at this point in the history
Cherry-picked from d1f74df. Closes #268.
  • Loading branch information
MikuAuahDark committed Mar 18, 2024
1 parent c73f7fe commit 28f7c4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/org/love2d/android/GameActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ protected void onCreate(Bundle savedInstanceState) {
}

Intent intent = getIntent();
// Prevent SDL sending filedropped event. Let us do that instead.
setIntent(null);
handleIntent(intent, true);
// Prevent SDL sending filedropped event. Let us do that instead.
intent.setData(null);

super.onCreate(savedInstanceState);

Expand Down

0 comments on commit 28f7c4a

Please sign in to comment.