Merge "Remove unncessary attachedToWindow check" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
5a939299b0
@@ -51,7 +51,7 @@ public class ContextualButton extends ButtonDispatcher {
|
||||
* Reload the drawable from resource id, should reapply the previous dark intensity.
|
||||
*/
|
||||
public void updateIcon(int lightIconColor, int darkIconColor) {
|
||||
if (getCurrentView() == null || !getCurrentView().isAttachedToWindow() || mIconResId == 0) {
|
||||
if (mIconResId == 0) {
|
||||
return;
|
||||
}
|
||||
final KeyButtonDrawable currentDrawable = getImageDrawable();
|
||||
|
||||
Reference in New Issue
Block a user