Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 00e6068a authored by LuK1337's avatar LuK1337
Browse files

Twelve: Provide our own androidx.navigation libs

With 2.9.0-alpha09 libs from AOSP we get the following crash when
following these steps:

1. start song playback
2. press home
3. double tap recents to open music app again
4. press back

E AndroidRuntime: FATAL EXCEPTION: main
E AndroidRuntime: Process: org.lineageos.twelve, PID: 16700
E AndroidRuntime: java.lang.IndexOutOfBoundsException: Index 2 out of bounds for length 2
E AndroidRuntime: 	at jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
E AndroidRuntime: 	at jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
E AndroidRuntime: 	at jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266)
E AndroidRuntime: 	at java.util.Objects.checkIndex(Objects.java:385)
E AndroidRuntime: 	at java.util.ArrayList.get(ArrayList.java:434)
E AndroidRuntime: 	at androidx.navigation.internal.NavControllerImpl.dispatchOnDestinationChanged$navigation_runtime_release(go/retraceme 49a4689b1b9f5d94f3b3108318d3f9f9f7447890fed552f4781c9a5e07104e58:105)
E AndroidRuntime: 	at androidx.navigation.internal.NavControllerImpl.pop$navigation_runtime_release(go/retraceme 49a4689b1b9f5d94f3b3108318d3f9f9f7447890fed552f4781c9a5e07104e58:116)
E AndroidRuntime: 	at androidx.navigation.NavController$NavControllerNavigatorState.pop(go/retraceme 49a4689b1b9f5d94f3b3108318d3f9f9f7447890fed552f4781c9a5e07104e58:10)
E AndroidRuntime: 	at androidx.navigation.NavController$NavControllerNavigatorState.popWithTransition(go/retraceme 49a4689b1b9f5d94f3b3108318d3f9f9f7447890fed552f4781c9a5e07104e58:177)
E AndroidRuntime: 	at androidx.navigation.fragment.FragmentNavigator$onAttach$2.onBackStackChangeCommitted(go/retraceme 49a4689b1b9f5d94f3b3108318d3f9f9f7447890fed552f4781c9a5e07104e58:252)
E AndroidRuntime: 	at androidx.fragment.app.FragmentManager$1.handleOnBackPressed(go/retraceme 49a4689b1b9f5d94f3b3108318d3f9f9f7447890fed552f4781c9a5e07104e58:96)
E AndroidRuntime: 	at androidx.activity.OnBackPressedDispatcher.onBackPressed(go/retraceme 49a4689b1b9f5d94f3b3108318d3f9f9f7447890fed552f4781c9a5e07104e58:42)
E AndroidRuntime: 	at androidx.activity.OnBackPressedDispatcher$3.invoke(go/retraceme 49a4689b1b9f5d94f3b3108318d3f9f9f7447890fed552f4781c9a5e07104e58:3)
E AndroidRuntime: 	at androidx.activity.OnBackPressedDispatcher$Api34Impl$createOnBackAnimationCallback$1.onBackInvoked(go/retraceme 49a4689b1b9f5d94f3b3108318d3f9f9f7447890fed552f4781c9a5e07104e58:3)
E AndroidRuntime: 	at android.window.WindowOnBackInvokedDispatcher$OnBackInvokedCallbackWrapper.lambda$onBackInvoked$4(WindowOnBackInvokedDispatcher.java:611)
E AndroidRuntime: 	at android.window.WindowOnBackInvokedDispatcher$OnBackInvokedCallbackWrapper.$r8$lambda$JSuRKE4c8OySpubol1Svl3F06wU(Unknown Source:0)
E AndroidRuntime: 	at android.window.WindowOnBackInvokedDispatcher$OnBackInvokedCallbackWrapper$$ExternalSyntheticLambda2.run(D8$$SyntheticClass:0)
E AndroidRuntime: 	at android.os.Handler.handleCallback(Handler.java:995)
E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:103)
E AndroidRuntime: 	at android.os.Looper.loopOnce(Looper.java:248)
E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:338)
E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:9067)
E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:593)
E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:932)

Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/9471
Change-Id: Icaa830d91d06ba30d7231f4b34d97104f79b9b7a
parent 3b25367b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment