Skip to content

This is not compatible for Support Library. #217

@galacticappster04

Description

@galacticappster04

I cannot seem to pass FragmentManager from a fragment via a getFragmentManager(). The version of the support library I am getting this from is v4's.

Here is my code:

        EditText fromDate = (EditText) view.findViewById(R.id.edittext_frag_filter_date_from);
        fromDate.setOnClickListener(new View.OnClickListener()
        {
            @Override
            public void onClick(View view)
            {
                FragmentManager fg = RankingsFilterFragment.this.getFragmentManager();

                Calendar now = Calendar.getInstance();
                DatePickerDialog datePickerDialog = DatePickerDialog.newInstance(RankingsFilterFragment.this, now.get(Calendar.YEAR), now.get(Calendar.MONTH), Calendar.DAY_OF_MONTH);
                datePickerDialog.show(fg, "THIS IS NOT WORKING FIX THIS!");
            }
        });

I am having error on show() since it is asking for FragmentManager I need to pass FragmentManager from v4 support library. I can't.

It says this one has support for Android 4.0 (API15) I am using API16. Is there a workaround for this? Or something I've missed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions