Skip to content

Commit

Permalink
fix #8
Browse files Browse the repository at this point in the history
  • Loading branch information
whataa committed Oct 29, 2019
1 parent 5c0d757 commit 91ce50c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -736,9 +736,6 @@ public static void setViewBackground(
if (checkableDrawable != null) {
listDrawable.addState(new int[]{android.R.attr.state_checkable}, checkableDrawable);
}
if (enabledDrawable != null) {
listDrawable.addState(new int[]{android.R.attr.state_enabled}, enabledDrawable);
}
if (focusedDrawable != null) {
listDrawable.addState(new int[]{android.R.attr.state_focused}, focusedDrawable);
}
Expand All @@ -748,6 +745,9 @@ public static void setViewBackground(
if (selectedDrawable != null) {
listDrawable.addState(new int[]{android.R.attr.state_selected}, selectedDrawable);
}
if (enabledDrawable != null) {
listDrawable.addState(new int[]{android.R.attr.state_enabled}, enabledDrawable);
}
if (defaultDrawable != null) {
listDrawable.addState(new int[]{0}, defaultDrawable);
} else {
Expand Down

0 comments on commit 91ce50c

Please sign in to comment.