android - FragmentManager API is lacking -


it seems me basic functionality, clear stack, absent fragmentmanager api, posting question because want know if poor design or there reasons dont yet realize following :

  1. i happen find self in situation need clean stack , start fresh, there no proper way of doing it, way aware of after google searching (or alike) :

    while (supportfragmentmanager.popbackstackimmediate()); supportfragmentmanager.begintransaction().replace(r.id.content, freshstartfragment).commit();

the problem transactions animations being executed on main thread stucking gui no reason ever

  1. getbackstackentryat seemed promissing when facing problem 1, thought reasonable actual transaction available through backstackentry unluckily class seem redundent

  2. continuing comment 2, stack contains transactions, expect getter them can edit them, example make them show no animtaion code in 1 work well.

to put in short, why have go way clean stack? reason there fragmentmanager designer exclude simple cleanbackstack method?

enlighten me :)

note: question diffrent clear stack using fragments not asking how (as there many posts have answers that), asking why simple basic functionality need implemented in such hacky way? biggest problem (which has hacky solutions too) hacky solution gui thread gets stuck while executing pops...


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -