fix crash when trying to use fragmenttransaction in logintask if

activity was closed while trying to login
This commit is contained in:
Andrew Dolgov 2011-12-02 08:35:27 +03:00
parent 417ded36af
commit 8e21ba0c94

View File

@ -964,7 +964,11 @@ public class MainActivity extends FragmentActivity implements FeedsFragment.OnFe
ft.replace(R.id.feeds_fragment, frag); ft.replace(R.id.feeds_fragment, frag);
} }
ft.commit(); try {
ft.commit();
} catch (IllegalStateException e) {
e.printStackTrace();
}
} }
}; };