Open msh-nayan opened 9 years ago
@msh-nayan I actually ran into this same problem. Digging into the source I found that it was caused by the code in BrowseFragment.onStart
making a call out to the readd the listeners on start.
I have put a temp fix in my repo https://github.com/dkarzon/Sofa by removing the check. But I'll try to find a better solution and PR it if I can.
I just came into the same issue when using the library. /cc @dextorer
@dkarzon Could you quickly explain me how do i use your forked version with gradle?
@philipgiuliani There is no package for my fork if that's what you mean.
However you can manually add it to your project. Download it from my fork them put the sofa
folder into your source folder. Inside your settings.gradle
add this line: include ':sofa'
Then in your app/gradle.build
replace your current sofa reference with compile project(':sofa')
Thanks, thats exactly what i have needed! :+1:
I have the exactly same issue: java.lang.IllegalStateException: Item clicked listener must be set before views are created
from Browse Screen, If I Click an Item & then go to another activity (assume, I've another activity name Activity B). When I return to Browse Screen from Activity B by back press, the application goes to force close.
from log cat : ava.lang.RuntimeException: Unable to resume activity : java.lang.IllegalStateException: Item clicked listener must be set before views are created
Caused by: java.lang.IllegalStateException: Item clicked listener must be set before views are created
at .RowsSupportFragment.setOnItemViewClickedListener(RowsSupportFragment.java:158) at .BrowseSupportFragment.onStart(BrowseSupportFragment.java:933)