ncapdevi / FragNav

An Android library for managing multiple stacks of fragments
1.5k stars 220 forks source link

Specific refresh fragment. #225

Closed murselsahin closed 4 years ago

murselsahin commented 4 years ago

My Hide Strategy: fragNavController.setFragmentHideStrategy(FragNavController.HIDE);

Everything is OK but i want CartFragment not HIDE. When i push Cart icon , refresh cart fragment.

Is there any way ?

switch (index) { case INDEX_HOME: return HomeFragment.newInstance(); case INDEX_CAMPAIGNS: return CampaignFragment.newInstance(""); case INDEX_CATEGORIES: return CategoryFragment.newInstance("0", getString(R.string.categories)); case INDEX_SEARCH: return HomeFragment.newInstance(); //todo case INDEX_CART: return CartFragment.newInstance(); // i want refresh this fragment specific

    }
ghost commented 4 years ago

Hi, @murselsahin have you found the solution for this.