提交 99f6d05d 编写于 作者: H huangziwei

fix bug

上级 b27cd9ab
......@@ -509,13 +509,13 @@ public class DoodleActivity extends Activity {
mDone = false;
if (v.getId() == R.id.btn_pen_hand) {
if (mDoodle.getPen() != DoodlePen.BRUSH) {
mDoodle.setPen(DoodlePen.BRUSH);
mBtnBrushEdit.setVisibility(View.VISIBLE);
mBtnBrushEdit.setSelected(mDoodle.getPen().isSelectable());
mBtnColorContainer.setVisibility(View.VISIBLE);
mShapeModeContainer.setVisibility(View.VISIBLE);
mColorContainer.setVisibility(View.VISIBLE);
mTouchGestureListener.setSelectedItem(null);
mDoodle.setPen(DoodlePen.BRUSH);
Drawable colorBg = mBtnColor.getBackground();
if (colorBg instanceof ColorDrawable) {
mDoodle.setColor(new DoodleColor(((ColorDrawable) colorBg).getColor()));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册