src/api-impl/android/app/Activity.java: don't return null intent, apparently some apps tolerating that was an exception

This commit is contained in:
Mis012
2022-12-27 17:15:56 +01:00
parent 1c94d56a11
commit 9ec3bf58c2

View File

@@ -47,8 +47,8 @@ public class Activity extends Context {
} }
public Intent getIntent() { public Intent getIntent() {
return null; // this is the main activity, and it wasn't opened as a result of someone calling "open with" // return null; // this is the main activity, and it wasn't opened as a result of someone calling "open with"
// return new Intent(); return new Intent(); // seems some apps don't consider this nullable...
} }
public int getRequestedOrientation() { public int getRequestedOrientation() {