Code reviews were reset accidentally by an upstream update. Cleaned unrelated change, and only minor change (TODO comment and spacing) since the latest review (Patchset 30).
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Yishui LiuHi Mohamed,
Can you help review the change under chrome/browser/touch_to_fill/common/android/ and chrome/browser/touch_to_fill/password_manager/android/internal/java/src/org/chromium/chrome/browser/touch_to_fill/ TouchToFillView.java
for adding an additional footer type for the touch to fill view?Thanks
And a common layout for text buttons.
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[BNPL] Add header and footer for BNPL ToS bottomsheetTechnically this could be 2 CLs
@CalledByNative
private BnplIssuerTosDetail.LegalMessages convertLegalMessageLinesForBnplTos(
@JniType("std::vector") List<LegalMessageLine> legalMessageLines) {
return new BnplIssuerTosDetail.LegalMessages(legalMessageLines, this::openLink);
}Can you annotate the constructor of the `LegalMessages` with `@CalledByNative` so that you don't need to create an additional static method here?
android:focusable="true"Why do you need to make this TextView focusable?
private static void setCallbackForButton(View view, int buttonId, Runnable callback) {@IdRes int
.perform(createClickActionWithFlags(MotionEvent.FLAG_WINDOW_IS_OBSCURED));If you just want to click a view, use `ViewActions::click()`. This one tests how the view handles clicks through obscured surfaces.
.perform(createClickActionWithFlags(MotionEvent.FLAG_WINDOW_IS_OBSCURED));Same here.
android:descendantFocusability="blocksDescendants"I believe this has no effect when set on a View which is not a ViewGroup, please remove.
public LegalMessages(List<LegalMessageLine> lines, Consumer<String> linkOpener) {Can you annotate the constructor with @CalledByNative. It might be problematic to use it on the native side because the class is nested.
private final int mHeaderIconDrawableId;@DrawableRes
private final int mHeaderIconDarkDrawableId;@DrawableRes
int headerIconDarkDrawableId,@DrawableRes
public int getHeaderIconDrawableId() {@DrawableRes int
public int getHeaderIconDarkDrawableId() {@DrawableRes int
/* headerIconDrawableId= */ 1,
/* headerIconDarkDrawableId= */ 2,Maybe use some general purpose icon ids here?
Taking myself off until timofey's comments are resolved
android:focusable="true"Why do you need to make this TextView focusable?
It's for accessibility. TalkBack will read the text, but it may skip over the it as an interactive element. Correct me if I am wrong.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |