[snoar]
This commit is contained in:
yangyakun
2023-10-19 11:01:01 +08:00
parent c265850024
commit 1219831000
2 changed files with 12 additions and 8 deletions

View File

@@ -34,13 +34,13 @@ public class OpenItemAnimator extends DefaultItemAnimator {
private ArrayList<ChangeInfo> mPendingChanges = new ArrayList<>();
ArrayList<ArrayList<RecyclerView.ViewHolder>> mAdditionsList = new ArrayList<>();
ArrayList<ArrayList<MoveInfo>> mMovesList = new ArrayList<>();
ArrayList<ArrayList<ChangeInfo>> mChangesList = new ArrayList<>();
private ArrayList<ArrayList<MoveInfo>> mMovesList = new ArrayList<>();
private ArrayList<ArrayList<ChangeInfo>> mChangesList = new ArrayList<>();
ArrayList<RecyclerView.ViewHolder> mAddAnimations = new ArrayList<>();
ArrayList<RecyclerView.ViewHolder> mMoveAnimations = new ArrayList<>();
ArrayList<RecyclerView.ViewHolder> mRemoveAnimations = new ArrayList<>();
ArrayList<RecyclerView.ViewHolder> mChangeAnimations = new ArrayList<>();
private ArrayList<RecyclerView.ViewHolder> mAddAnimations = new ArrayList<>();
private ArrayList<RecyclerView.ViewHolder> mMoveAnimations = new ArrayList<>();
private ArrayList<RecyclerView.ViewHolder> mRemoveAnimations = new ArrayList<>();
private ArrayList<RecyclerView.ViewHolder> mChangeAnimations = new ArrayList<>();
private static class MoveInfo {
public RecyclerView.ViewHolder holder;

View File

@@ -149,9 +149,11 @@ public class OCHStockBlurView extends View {
} finally {
if (!r) {
release();
return false;
}
}
if (!r) {
return false;
}
}
if (dirty) {
@@ -216,7 +218,9 @@ public class OCHStockBlurView extends View {
}
}
if(onece) {
mDecorView.getViewTreeObserver().removeOnPreDrawListener(this);
if(mDecorView!=null) {
mDecorView.getViewTreeObserver().removeOnPreDrawListener(this);
}
}
return true;
}