Skip to content

Commit

Permalink
Expose isDrawableVisible()
Browse files Browse the repository at this point in the history
  • Loading branch information
balysv committed May 30, 2015
1 parent 0c45951 commit c0c9199
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,10 @@ public IconState getIconState() {
return currentIconState;
}

public boolean isDrawableVisible(){
return visible;
}

/*
* Animations
*/
Expand Down Expand Up @@ -857,8 +861,4 @@ public int getChangingConfigurations() {
static float dpToPx(Resources resources, float dp) {
return TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, resources.getDisplayMetrics());
}

boolean isDrawableVisible(){
return visible;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public Parcelable onSaveInstanceState() {
Parcelable superState = super.onSaveInstanceState();
SavedState savedState = new SavedState(superState);
savedState.state = currentState;
savedState.visible = ((drawable != null) ? drawable.isDrawableVisible() : false);
savedState.visible = drawable != null && drawable.isDrawableVisible();
return savedState;
}

Expand Down

0 comments on commit c0c9199

Please sign in to comment.