title: Showing DialogFragment from an ActionBar.TabListener
body: <p>Is it possible to show a <code>FragmentDialog</code> when a tab is selected in the <code>ActionBar</code>?</p>
  
  <p>The <code>onTabSelected()</code> method happens inside a transaction that is commited after the execution of the method finishes. However, the <code>show()</code> method in <code>DialogFragment</code> does also happen in a transaction automatically, so if you try to show the dialog when the tab is selected you get  a <code>RuntimeException</code> because the transaction gets commited twice.</p>
  
  <p>Any hints will be appreciated.</p>