You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user