From 8e21ba0c94cb69ec2974350666f9cbdacacac583 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 2 Dec 2011 08:35:27 +0300 Subject: [PATCH] fix crash when trying to use fragmenttransaction in logintask if activity was closed while trying to login --- src/org/fox/ttrss/MainActivity.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/org/fox/ttrss/MainActivity.java b/src/org/fox/ttrss/MainActivity.java index e78de4a7..3974b5f8 100644 --- a/src/org/fox/ttrss/MainActivity.java +++ b/src/org/fox/ttrss/MainActivity.java @@ -964,7 +964,11 @@ public class MainActivity extends FragmentActivity implements FeedsFragment.OnFe ft.replace(R.id.feeds_fragment, frag); } - ft.commit(); + try { + ft.commit(); + } catch (IllegalStateException e) { + e.printStackTrace(); + } } };