mirror of
https://github.com/leanote/leanote-android.git
synced 2025-10-16 07:19:28 +00:00
fix pass null to callback.onDestroy()
This commit is contained in:
@@ -48,12 +48,12 @@ public class ActionModeHandler<T> {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onDestroyActionMode(ActionMode mode) {
|
public void onDestroyActionMode(ActionMode mode) {
|
||||||
mActionMode = null;
|
|
||||||
mPendingItems = null;
|
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||||
mContext.getWindow().setStatusBarColor(mContext.getResources().getColor(R.color.colorPrimary));
|
mContext.getWindow().setStatusBarColor(mContext.getResources().getColor(R.color.colorPrimary));
|
||||||
}
|
}
|
||||||
mCallback.onDestroy(mPendingItems);
|
mCallback.onDestroy(mPendingItems);
|
||||||
|
mActionMode = null;
|
||||||
|
mPendingItems = null;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user