package com.github.frankiesardo.icepick;

import android.content.Context;
import android.os.Parcelable;
import android.util.AttributeSet;
import com.sample.icepick.lib.BaseCustomView;
import icepick.Icicle;

public class CustomView extends BaseCustomView {

  @Icicle Integer textColor = Integer.MAX_VALUE;

  public CustomView(Context context) {
    super(context);
  }

  public CustomView(Context context, AttributeSet attrs) {
    super(context, attrs);
  }

  public CustomView(Context context, AttributeSet attrs, int defStyle) {
    super(context, attrs, defStyle);
  }

  public void setTextColorWithAnotherMethod(int color) {
    this.textColor = color;
    setTextColor(textColor);
  }

  @Override
  public void onRestoreInstanceState(Parcelable state) {
    super.onRestoreInstanceState(state);
    if (textColor != null) {
      setTextColorWithAnotherMethod(textColor);
    }
  }
}

@@ -282,28 +282,8 @@
 olor
- = Integer.MAX_VALUE
 ;%0A%0A 

Fix example