commit | 162b21598d9f4fd49748b3c7e27501fe1277210d | [log] [tgz] |
---|---|---|
author | Christopher Lane <lanechr@google.com> | Fri Mar 20 17:17:30 2015 -0700 |
committer | Christopher Lane <lanechr@google.com> | Fri Mar 20 17:17:30 2015 -0700 |
tree | e3a4342f5688b3aa1a7dc80ee044050a6289d150 | |
parent | 3b849898339487b3dd952b1f3754f6b2c3f9f873 [diff] |
Copy the drawable's level to the image view Change-Id: Ia98c66b40b64aeab695f77de5352c41027bd29e0
diff --git a/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.java b/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.java index 3562234..204d4ce 100644 --- a/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.java +++ b/v17/leanback/src/android/support/v17/leanback/widget/GuidedActionsStylist.java
@@ -528,6 +528,8 @@ Context context = iconView.getContext(); icon = action.getIcon(); if (icon != null) { + // setImageDrawable resets the drawable's level unless we set the view level first. + iconView.setImageLevel(icon.getLevel()); iconView.setImageDrawable(icon); iconView.setVisibility(View.VISIBLE); } else {