is possible show fragmentdialog
when tab selected in actionbar
?
the ontabselected()
method happens inside transaction commited after execution of method finishes. however, show()
method in dialogfragment
happen in transaction automatically, if try show dialog when tab selected runtimeexception
because transaction gets commited twice.
any hints appreciated.
just ignore supplied fragmenttransaction
.
for example, need if using android compatibility library (acl), because fragmenttransaction
action bar android 3.0 fragmenttransaction
, not acl fragmenttransaction
. so, ignore passed-in 1 , use own.
similarly, expect can ignore fragmenttransaction
, display dialogfragment
without problems.
whether ux make sense problem. when user accepts dialog tab shows... nothing?
Comments
Post a Comment