Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

多选图片超过最大值空指针 #107

Closed
39251474 opened this issue Apr 11, 2017 · 3 comments
Closed

多选图片超过最大值空指针 #107

39251474 opened this issue Apr 11, 2017 · 3 comments
Labels

Comments

@39251474
Copy link

不添加多选监听时会崩溃
/**
* @author KARL-dujinyang
*/
class OnCheckBoxCheckListener implements CompoundButton.OnCheckedChangeListener{
private MediaBean mediaBean;

    public OnCheckBoxCheckListener(MediaBean bean){
        this.mediaBean = bean;
    }

    @Override
    public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
        if(mConfiguration.getMaxSize() == mMediaActivity.getCheckedList().size() &&
                !mMediaActivity.getCheckedList().contains(mediaBean)) {
            AppCompatCheckBox checkBox = (AppCompatCheckBox) buttonView;
            checkBox.setChecked(false);
            Logger.i("选中:" + mMediaActivity.getResources().getString(R.string.gallery_image_max_size_tip, mConfiguration.getMaxSize()));
            iMultiImageCheckedListener.selectedImgMax(buttonView, isChecked, mConfiguration.getMaxSize());
        } else {
            if(iMultiImageCheckedListener!=null)
                iMultiImageCheckedListener.selectedImg(buttonView, isChecked);
        }

    }
}

iMultiImageCheckedListener空指针

@xinyang123123
Copy link

我也遇到了

@sheep0704
Copy link
Member

GET

@sheep0704 sheep0704 added the bug label Apr 24, 2017
@sheep0704
Copy link
Member

多选图片超过最大值空指针 #107 ---- 新版本1.0.3解决,下午发布;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants