i working on app has lot of fragments , while navigating through them each fragment added backstack ... want achieve don't want duplicate backstack entries. ...e.g if have 4 fragments f1,f2,f3,f4 , if navigate through f1-f2-f3-f1-f4-f3 fragments f1 , f3 added 2 times ....is there way can check if fragment in backstack duplicate entries won't b added ?
since creating new refreneces fragments there duplicates suggestion : 1.insert tag : lets use findfragmentbytag(string tag)
fragmentmanager
wont duplicates 2.use singleton on selected fragments : singleton return exist refrence of fragment.. (usual not used backstack entries kinda tricky)
Comments
Post a Comment