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

RestoreCard call when open Card Click #23

Open
vadol opened this issue Sep 19, 2016 · 5 comments
Open

RestoreCard call when open Card Click #23

vadol opened this issue Sep 19, 2016 · 5 comments

Comments

@vadol
Copy link

vadol commented Sep 19, 2016

In Card ,we add fragment to click to button ,When click on card collapse card(RestoreCard) with clear fragment stack.When collapse card clear fragment stack

@tushar-nallan
Copy link
Contributor

@vadol Hey can you please explain in steps what the issue is?

@vadol
Copy link
Author

vadol commented Sep 19, 2016

  1. open card

card open

  1. add fragment to button click

fragment open

now collaspe to card by click on card

collaspe

how to clear fragment stack when collaspe card ?

@vadol
Copy link
Author

vadol commented Sep 19, 2016

when restore card clear fragment stack

@vadol
Copy link
Author

vadol commented Sep 19, 2016

Solve

public void resetCards() {

    MyCardStackAdapter myCardStackAdapter=new MyCardStackAdapter((MainActivity) mContext);
    myCardStackAdapter.clearbackstack();

    resetCards(null);
}

In Adapter Class

public void clearbackstack()
{
// code

}

@tushar-nallan
Copy link
Contributor

@vadol Looks like you got a fix! Can you raise a Pull Request so that I can merge it into the repo?

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

No branches or pull requests

2 participants