CymChad / CymChad/BaseRecyclerViewAdapterHelper

Please get it after onAttachedToRecyclerView()

Open
#3,566 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Kotlin
Stars
24.6k
Forks
5.2k
PR merge metrics
No merged PRs in 30d

Description

java.lang.IllegalStateException
Please get it after onAttachedToRecyclerView()

com.chad.library.adapter.base.BaseQuickAdapter.F(SourceFile:3)

`# main(2)

java.lang.IllegalStateException

Please get it after onAttachedToRecyclerView()

解析原始
1
com.chad.library.adapter.base.BaseQuickAdapter.F(SourceFile:3)
2
k.a.a.c.a.b(SourceFile:5)
3
top.airmart.mall.ui.fragment.ShopChildFragment.T(SourceFile:1)
4
top.airmart.mall.ui.fragment.ShopChildFragment.R(Unknown Source:0)
5
o.a.a.c.c.d0.onChanged(Unknown Source:4)
6
androidx.lifecycle.LiveData.considerNotify(SourceFile:6)
7
androidx.lifecycle.LiveData.dispatchingValue(SourceFile:5)
8
androidx.lifecycle.LiveData$ObserverWrapper.activeStateChanged(SourceFile:5)
9
androidx.lifecycle.LiveData$LifecycleBoundObserver.onStateChanged(SourceFile:4)
10
androidx.lifecycle.LifecycleRegistry$ObserverWithState.dispatchEvent(SourceFile:3)
11
androidx.lifecycle.LifecycleRegistry.forwardPass(SourceFile:10)
12
androidx.lifecycle.LifecycleRegistry.sync(SourceFile:9)
13
androidx.lifecycle.LifecycleRegistry.moveToState(SourceFile:5)
14
androidx.lifecycle.LifecycleRegistry.handleLifecycleEvent(SourceFile:2)
15
androidx.fragment.app.Fragment.performStart(SourceFile:7)
16
androidx.fragment.app.FragmentStateManager.start(SourceFile:3)
17
androidx.fragment.app.FragmentStateManager.moveToExpectedState(SourceFile:10)
18
androidx.fragment.app.FragmentStore.moveToExpectedState(SourceFile:3)
19
androidx.fragment.app.FragmentManager.moveToState(SourceFile:57)
20
androidx.fragment.app.FragmentManager.dispatchStateChange(SourceFile:3)
21
androidx.fragment.app.FragmentManager.dispatchStart(SourceFile:4)
22
androidx.fragment.app.FragmentController.dispatchStart(SourceFile:1)
23
androidx.fragment.app.FragmentActivity.onStart(SourceFile:9)
24
androidx.appcompat.app.AppCompatActivity.onStart(SourceFile:1)
25
android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1436)
26
android.app.Activity.performStart(Activity.java:8170)
27
android.app.ActivityThread.handleStartActivity(ActivityThread.java:3748)
28
android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:232)
29
android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:212)
30
android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:184)`

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing BaseQuickAdapter.F and the RecyclerView attachment lifecycle referenced by the stack trace. The report provides no source file or reproduction steps, so first reproduce the exception and trace the call from ShopChildFragment.T. Done should mean identifying the invalid ordering and adding coverage for the failing lifecycle case.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
22/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.