Skip to content

Commit

Permalink
Merge branch 'master' into androidWebViewScrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
cb1kenobi authored May 13, 2024
2 parents 4c7e8f8 + a7b145d commit 9e65c9b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions android/cli/hooks/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,10 @@ exports.init = function (logger, config, cli) {

// start of a new log message
if (device.appPidRegExp.test(line)) {
line = line.trim().replace(device.appPidRegExp, ':');
line = line.replace(/^ {1,2}/, '').replace(device.appPidRegExp, ':');
logLevel = line.charAt(0).toLowerCase();
if (tiapiRegExp.test(line)) {
line = line.replace(tiapiRegExp, '').trim();
line = line.replace(tiapiRegExp, '').replace(/^ {1,2}/, '');
} else {
line = line.replace(/^\w\/(\w+)\s*:/g, '$1:').grey;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ public void onTabSelected(TabProxy tabProxy)
tabProxy.onSelectionChanged(true);
tabProxy.onFocusChanged(true, focusEventData);

tabProxy.fireEvent(TiC.EVENT_SELECTED, null, false);
tabProxy.fireEvent(TiC.EVENT_SELECTED, focusEventData, false);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -344,11 +344,17 @@ public void updateTabBackgroundDrawable(int index)
try {
// BottomNavigationMenuView rebuilds itself after adding a new item, so we need to reset the colors each time.
TiViewProxy tabProxy = tabs.get(index).getProxy();
if (hasCustomBackground(tabProxy) || hasCustomIconTint(tabProxy)) {
boolean hasTouchFeedbackColor = tabProxy.hasPropertyAndNotNull(TiC.PROPERTY_TOUCH_FEEDBACK_COLOR);
if (hasCustomBackground(tabProxy) || hasCustomIconTint(tabProxy) || hasTouchFeedbackColor) {
BottomNavigationMenuView bottomMenuView =
((BottomNavigationMenuView) this.mBottomNavigationView.getChildAt(0));
Drawable drawable = createBackgroundDrawableForState(tabProxy, android.R.attr.state_checked);
drawable = new RippleDrawable(createRippleColorStateListFrom(getActiveColor(tabProxy)), drawable, null);
int color = getActiveColor(tabProxy);
if (hasTouchFeedbackColor) {
color = TiConvert.toColor(tabProxy.getProperty(TiC.PROPERTY_TOUCH_FEEDBACK_COLOR),
tabProxy.getActivity());
}
drawable = new RippleDrawable(createRippleColorStateListFrom(color), drawable, null);
bottomMenuView.getChildAt(index).setBackground(drawable);
}
} catch (Exception e) {
Expand Down

0 comments on commit 9e65c9b

Please sign in to comment.