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

Browse Fragment On Back Reloads all Fragment #10

Open
indieocean opened this issue Dec 10, 2015 · 2 comments
Open

Browse Fragment On Back Reloads all Fragment #10

indieocean opened this issue Dec 10, 2015 · 2 comments

Comments

@indieocean
Copy link

I managed to get the rows working, but when I click on an item and open up my details activity and go back instead of returning to the row item I just clicked it reloads the complete Browse Fragment again.

Ex.

private final class ItemViewClickedListener implements OnItemViewClickedListener {
        @Override
        public void onItemClicked(Presenter.ViewHolder itemViewHolder, Object item,
                                  RowPresenter.ViewHolder rowViewHolder, Row row) {
            Log.d(TAG, "OnItemViewClickedListener called");
            if (item instanceof Item) {
                Item mItem = (Item) item;
                Log.d(TAG, "Item: " + item.toString());
                Intent intent = new Intent(MainActivity.this, DetailsActivity.class);
                intent.putExtra(DetailsActivity.ITEM, mItem);

                Bundle bundle = ActivityOptionsCompat.makeSceneTransitionAnimation(
                        MainActivity.this,
                        ((ImageCardView) itemViewHolder.view).getMainImageView(),
                        DetailsActivity.SHARED_ELEMENT_NAME).toBundle();
                MainActivity.this.startActivity(intent, bundle);
            }
        }
    }
@philipgiuliani
Copy link

Hi i have the same issue i think and opened an issue some days ago: #9 Its so bad :(

@dextorer
Copy link
Owner

I haven't had the time to look into issues in these months, as I'm pretty busy with work/other projects. Any chance you can submit a PR?

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

3 participants