Skip to content

Commit

Permalink
Fix bug nullpointer
Browse files Browse the repository at this point in the history
  • Loading branch information
Hitomis committed Feb 28, 2017
1 parent 194fb20 commit 0cfff85
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmlibrary/src/main/java/com/hitomi/cmlibrary/CircleMenu.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import android.graphics.Shader;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.GradientDrawable;
import android.support.v4.graphics.ColorUtils;
import android.util.AttributeSet;
import android.view.MotionEvent;
Expand Down Expand Up @@ -117,7 +118,12 @@ public CircleMenu(Context context, AttributeSet attrs, int defStyleAttr) {

private void init() {
initTool();

mainMenuColor = Color.parseColor("#CDCDCD");

openMenuIcon = new GradientDrawable();
closeMenuIcon = new GradientDrawable();

subMenuColorList = new ArrayList<>();
subMenuDrawableList = new ArrayList<>();
menuRectFList = new ArrayList<>();
Expand Down

0 comments on commit 0cfff85

Please sign in to comment.