Skip to content

Commit

Permalink
修复NCalendar中的id重复bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yannecer committed Dec 1, 2017
1 parent 755ccf4 commit 6e13c68
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import android.animation.ValueAnimator;
import android.content.Context;
import android.graphics.Rect;
import android.os.Parcelable;
import android.support.annotation.Nullable;
import android.support.v4.view.NestedScrollingChild;
import android.support.v4.view.NestedScrollingParent;
Expand Down Expand Up @@ -583,4 +584,14 @@ public void setDateInterval(String startString,String endString) {
public int getState() {
return STATE;
}


@Override
protected void onRestoreInstanceState(Parcelable state) {
try{
super.onRestoreInstanceState(state);
} catch (Exception e){
state = null;
}
}
}

0 comments on commit 6e13c68

Please sign in to comment.