Skip to content

Commit

Permalink
Fix bug: ViewOnly style did not need check box.
Browse files Browse the repository at this point in the history
  • Loading branch information
habzy committed Oct 10, 2014
1 parent ac6def5 commit c585991
Showing 1 changed file with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ private void initViews() {
case ViewOnly:
mBtnDone.setVisibility(View.GONE);
mPagerBottomBar.setVisibility(View.GONE);
break;
case ViewAndDelete:
mCheckBox.setImageResource(R.drawable.icon_delete);
mCheckBox.setOnClickListener(mOnDeleteClickedListener);
Expand All @@ -122,7 +123,22 @@ private void fullScreen() {
mPagerBottomBar.setVisibility(View.GONE);
} else {
mPagerTitleBar.setVisibility(View.VISIBLE);
mPagerBottomBar.setVisibility(View.VISIBLE);
switch (mParams.getShownStyle()) {
case Pick_Multiple:
mPagerBottomBar.setVisibility(View.VISIBLE);
break;
case Pick_Single:
mPagerBottomBar.setVisibility(View.GONE);
break;
case ViewOnly:
mPagerBottomBar.setVisibility(View.GONE);
break;
case ViewAndDelete:
mPagerBottomBar.setVisibility(View.VISIBLE);
break;
default:
break;
}
}
}

Expand Down

0 comments on commit c585991

Please sign in to comment.