Skip to content

Commit

Permalink
fix: Predictive back gesture on HyperOS
Browse files Browse the repository at this point in the history
Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'float android.window.BackMotionEvent.getTouchX()' on a null object reference
       at android.window.WindowOnBackInvokedDispatcher$OnBackInvokedCallbackWrapper.lambda$onBackStarted$1(WindowOnBackInvokedDispatcher.java:353)
       at android.window.WindowOnBackInvokedDispatcher$OnBackInvokedCallbackWrapper.$r8$lambda$jWVwe-YeLRxW3tAMLuWZynG6e1k()
       at android.window.WindowOnBackInvokedDispatcher$OnBackInvokedCallbackWrapper$$ExternalSyntheticLambda4.run(:4)
       at android.os.Handler.handleCallback(Handler.java:958)
       at android.os.Handler.dispatchMessage(Handler.java:99)
       at android.os.Looper.loopOnce(Looper.java:224)
       at android.os.Looper.loop(Looper.java:318)
       at android.app.ActivityThread.main(ActivityThread.java:8847)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:561)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)

* Ref: Notsfsssf/pixez-flutter#792

Change-Id: I5cec6db65d3b25efeaa5a92c22c58ec37095f220
  • Loading branch information
XayahSuSuSu committed Oct 19, 2024
1 parent 520bd33 commit 1c72db3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
android:supportsRtl="true"
android:theme="@style/Theme.DataBackup"
android:usesCleartextTraffic="true"
android:enableOnBackInvokedCallback="false"
tools:replace="android:enableOnBackInvokedCallback"
tools:targetApi="31">

<activity
Expand Down

0 comments on commit 1c72db3

Please sign in to comment.