File tree 1 file changed +8
-2
lines changed
android/modules/ui/src/java/ti/modules/titanium/ui/widget/tabgroup
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -344,11 +344,17 @@ public void updateTabBackgroundDrawable(int index)
344
344
try {
345
345
// BottomNavigationMenuView rebuilds itself after adding a new item, so we need to reset the colors each time.
346
346
TiViewProxy tabProxy = tabs .get (index ).getProxy ();
347
- if (hasCustomBackground (tabProxy ) || hasCustomIconTint (tabProxy )) {
347
+ boolean hasTouchFeedbackColor = tabProxy .hasPropertyAndNotNull (TiC .PROPERTY_TOUCH_FEEDBACK_COLOR );
348
+ if (hasCustomBackground (tabProxy ) || hasCustomIconTint (tabProxy ) || hasTouchFeedbackColor ) {
348
349
BottomNavigationMenuView bottomMenuView =
349
350
((BottomNavigationMenuView ) this .mBottomNavigationView .getChildAt (0 ));
350
351
Drawable drawable = createBackgroundDrawableForState (tabProxy , android .R .attr .state_checked );
351
- drawable = new RippleDrawable (createRippleColorStateListFrom (getActiveColor (tabProxy )), drawable , null );
352
+ int color = getActiveColor (tabProxy );
353
+ if (hasTouchFeedbackColor ) {
354
+ color = TiConvert .toColor (tabProxy .getProperty (TiC .PROPERTY_TOUCH_FEEDBACK_COLOR ),
355
+ tabProxy .getActivity ());
356
+ }
357
+ drawable = new RippleDrawable (createRippleColorStateListFrom (color ), drawable , null );
352
358
bottomMenuView .getChildAt (index ).setBackground (drawable );
353
359
}
354
360
} catch (Exception e ) {
You can’t perform that action at this time.
0 commit comments