Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete deprecated receiveCommand for INT #568

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -217,23 +217,6 @@ protected void addEventEmitters(
picker.setOnFocusListener(eventEmitter);
}

@Override
public void receiveCommand(@NonNull ReactPicker root, int commandId, @androidx.annotation.Nullable ReadableArray args) {
switch (commandId) {
case FOCUS_PICKER:
root.performClick();
break;
case BLUR_PICKER:
root.clearFocus();
break;
case SET_NATIVE_SELECTED:
Assertions.assertNotNull(args);
assert args != null;
setNativeSelected(root, args.getInt(0));
break;
}
}

@Override
public void receiveCommand(@NonNull ReactPicker root, String commandId, @androidx.annotation.Nullable ReadableArray args) {
Assertions.assertNotNull(root);
Expand Down Expand Up @@ -355,7 +338,7 @@ private View getView(int position, View convertView, ViewGroup parent, boolean i
convertView.setEnabled(enabled);
// Seems counter intuitive, but this makes the specific item not clickable when enable={false}
convertView.setClickable(!enabled);

final TextView textView = (TextView) convertView;
textView.setText(item.getString("label"));
textView.setMaxLines(mNumberOfLines);
Expand All @@ -366,7 +349,7 @@ private View getView(int position, View convertView, ViewGroup parent, boolean i
} else {
convertView.setBackgroundColor(Color.TRANSPARENT);
}

if (style.hasKey("color") && !style.isNull("color")) {
textView.setTextColor(style.getInt("color"));
}
Expand Down
Loading