[m1]
[1.1.2] [延时任务误判]
This commit is contained in:
@@ -56,6 +56,9 @@ public class HorizontalDecoration extends RecyclerView.ItemDecoration {
|
||||
view.postDelayed(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
if(parent==null){
|
||||
return;
|
||||
}
|
||||
final RecyclerView.Adapter adapter = parent.getAdapter();
|
||||
if(adapter instanceof TemperatureAdapter){
|
||||
parent.scrollToPosition(shouldScrollTo);
|
||||
|
||||
Reference in New Issue
Block a user