From 9ec3bf58c2b061d5df4422b500e308d29dc96401 Mon Sep 17 00:00:00 2001 From: Mis012 Date: Tue, 27 Dec 2022 17:15:56 +0100 Subject: [PATCH] src/api-impl/android/app/Activity.java: don't return null intent, apparently some apps tolerating that was an exception --- src/api-impl/android/app/Activity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api-impl/android/app/Activity.java b/src/api-impl/android/app/Activity.java index e86e37a7..f1ce2ea4 100644 --- a/src/api-impl/android/app/Activity.java +++ b/src/api-impl/android/app/Activity.java @@ -47,8 +47,8 @@ public class Activity extends Context { } public Intent getIntent() { - return null; // this is the main activity, and it wasn't opened as a result of someone calling "open with" -// return new Intent(); +// return null; // this is the main activity, and it wasn't opened as a result of someone calling "open with" + return new Intent(); // seems some apps don't consider this nullable... } public int getRequestedOrientation() {