MCPcopy Create free account
hub / github.com/comaps/comaps / create

Method create

android/app/src/main/java/app/organicmaps/car/util/Toggle.java:21–33  ·  view source on GitHub ↗
(@NonNull final CarContext context, @StringRes int title,
                           @NonNull final OnClickListener onClickListener, boolean checked)

Source from the content-addressed store, hash-verified

19 private static final int CHECKBOX_CHECKED_ICON = R.drawable.ic_checkbox_checked;
20
21 @NonNull
22 public static Row create(@NonNull final CarContext context, @StringRes int title,
23 @NonNull final OnClickListener onClickListener, boolean checked)
24 {
25 final Row.Builder row = new Row.Builder();
26 row.setTitle(context.getString(title));
27 if (context.getCarAppApiLevel() >= 6)
28 row.setToggle(createToggle(onClickListener, checked));
29 else
30 createCheckbox(row, context, onClickListener, checked);
31
32 return row.build();
33 }
34
35 @RequiresCarApi(6)
36 @NonNull

Callers 15

create3dBuildingsItemMethod · 0.95
showErrorDialogMethod · 0.45
getPlaceRouteInfoMethod · 0.45
onGetTemplateImplMethod · 0.45
getDistanceTextMethod · 0.45
getOpeningHoursTextMethod · 0.45
getDescriptionMethod · 0.45
createDistanceMethod · 0.45
createLaneDirectionMethod · 0.45
BaseSignViewMethod · 0.45

Calls 5

setTitleMethod · 0.95
createToggleMethod · 0.95
createCheckboxMethod · 0.95
buildMethod · 0.95
getStringMethod · 0.80

Tested by

no test coverage detected