kitfist0 / MyHandbook

Handbook with full-text search

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crash when trying to open menu

kitfist0 opened this issue · comments

java.lang.IllegalArgumentException: STATE_SETTLING should not be set externally.
        at com.google.android.material.bottomsheet.BottomSheetBehavior.setState(BottomSheetBehavior.java:1200)
        at my.handbook.ui.drawer.DrawerFragment$observeData$2$1.emit(DrawerFragment.kt:90)
        at my.handbook.ui.drawer.DrawerFragment$observeData$2$1.emit(DrawerFragment.kt:89)
        at kotlinx.coroutines.flow.StateFlowImpl.collect(StateFlow.kt:398)
        at kotlinx.coroutines.flow.StateFlowImpl$collect$1.invokeSuspend(Unknown Source:15)
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
        at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
        at kotlinx.coroutines.EventLoop.processUnconfinedEvent(EventLoop.common.kt:69)
        at kotlinx.coroutines.internal.DispatchedContinuationKt.resumeCancellableWith(DispatchedContinuation.kt:376)
        at kotlinx.coroutines.intrinsics.CancellableKt.startCoroutineCancellable(Cancellable.kt:30)
        at kotlinx.coroutines.intrinsics.CancellableKt.startCoroutineCancellable$default(Cancellable.kt:25)
        at kotlinx.coroutines.CoroutineStart.invoke(CoroutineStart.kt:110)
        at kotlinx.coroutines.AbstractCoroutine.start(AbstractCoroutine.kt:126)
        at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch(Builders.common.kt:56)
        at kotlinx.coroutines.BuildersKt.launch(Unknown Source:1)
        at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch$default(Builders.common.kt:47)
        at kotlinx.coroutines.BuildersKt.launch$default(Unknown Source:1)
        at my.handbook.ui.drawer.DrawerViewModel.changeBottomSheetState(DrawerViewModel.kt:75)
        at my.handbook.ui.drawer.DrawerViewModel.toggleBottomSheetState(DrawerViewModel.kt:66)
        at my.handbook.ui.drawer.DrawerFragment.toggleState(DrawerFragment.kt:26)
        at my.handbook.ui.MainActivity.setUpBottomNavigationAndFab$lambda-6(MainActivity.kt:83)
        at my.handbook.ui.MainActivity.$r8$lambda$f3KWpbQWOdalU505hjUuLfGZpYM(Unknown Source:0)
        at my.handbook.ui.MainActivity$$ExternalSyntheticLambda0.onClick(Unknown Source:2)
        at android.view.View.performClick(View.java:7441)
        at android.view.View.performClickInternal(View.java:7418)
        at android.view.View.access$3700(View.java:835)
        at android.view.View$PerformClick.run(View.java:28676)
        at android.os.Handler.handleCallback(Handler.java:938)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loopOnce(Looper.java:201)
        at android.os.Looper.loop(Looper.java:288)
        at android.app.ActivityThread.main(ActivityThread.java:7839)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
    	Suppressed: kotlinx.coroutines.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@b8e0ee7, Dispatchers.Main.immediate]