Skip to content
This repository has been archived by the owner on Jan 7, 2018. It is now read-only.

Missing strings for date/time picker #30

Open
enarges opened this issue Aug 28, 2013 · 1 comment
Open

Missing strings for date/time picker #30

enarges opened this issue Aug 28, 2013 · 1 comment

Comments

@enarges
Copy link

enarges commented Aug 28, 2013

When using an HTML page with a date/time picker the app crashes in the chromeview source related to missing resources. The resources missing are those related to the title and button label strings.

@enarges
Copy link
Author

enarges commented Aug 28, 2013

public DateTimePickerDialog(Context context,
        int theme,
        OnDateTimeSetListener callBack,
        int year,
        int monthOfYear,
        int dayOfMonth,
        int hourOfDay, int minute, boolean is24HourView) {
    super(context, theme);

    mCallBack = callBack;

    setButton(BUTTON_POSITIVE, context.getText(
            R.string.date_picker_dialog_set), this);
    setButton(BUTTON_NEGATIVE, context.getText(android.R.string.cancel),
            (OnClickListener) null);
    setIcon(0);
    setTitle(context.getText(R.string.date_time_picker_dialog_title));   <----------------  Missing resource

    LayoutInflater inflater =
            (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
    View view = inflater.inflate(R.layout.date_time_picker_dialog, null);
    setView(view);
    mDatePicker = (DatePicker) view.findViewById(R.id.date_picker);
    mDatePicker.init(year, monthOfYear, dayOfMonth, this);

    mTimePicker = (TimePicker) view.findViewById(R.id.time_picker);
    mTimePicker.setIs24HourView(is24HourView);
    mTimePicker.setCurrentHour(hourOfDay);
    mTimePicker.setCurrentMinute(minute);
    mTimePicker.setOnTimeChangedListener(this);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant