Skip to content

Commit

Permalink
fix(android): prevent multiple RippleDrawable backgrounds (#13131)
Browse files Browse the repository at this point in the history
Co-authored-by: Joshua Quick <jquick@axway.com>
  • Loading branch information
garymathews and jquick-axway committed Oct 19, 2021
1 parent 0b82834 commit 87553fa
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ protected Drawable generateRippleDrawable(Drawable drawable, String color)
{
final Activity activity = TiApplication.getAppCurrentActivity();

if (drawable instanceof RippleDrawable) {
drawable = ((RippleDrawable) drawable).getDrawable(0);
}
if (activity != null) {
final int[][] rippleStates = new int[][] { new int[] {} };
final TypedValue typedValue = new TypedValue();
Expand Down

0 comments on commit 87553fa

Please sign in to comment.