fix pass null to callback.onDestroy()

This commit is contained in:
houxg
2017-03-09 15:21:18 +08:00
parent 6874a131fb
commit d6bda6a367

View File

@@ -48,12 +48,12 @@ public class ActionModeHandler<T> {
@Override
public void onDestroyActionMode(ActionMode mode) {
mActionMode = null;
mPendingItems = null;
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
mContext.getWindow().setStatusBarColor(mContext.getResources().getColor(R.color.colorPrimary));
}
mCallback.onDestroy(mPendingItems);
mActionMode = null;
mPendingItems = null;
}
};