mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-04 20:46:28 +01:00
catch IllegalStateException
Play store reports crashes but stack crawl doesn't tell me where from. So try catching the exception and on debug builds logging what dialog is responsible.
This commit is contained in:
parent
7f4d8b1a44
commit
a834a8170a
1 changed files with 6 additions and 1 deletions
|
@ -272,7 +272,12 @@ public class XWActivity extends FragmentActivity
|
|||
trans.addToBackStack( tag );
|
||||
df.show( trans, tag );
|
||||
} else {
|
||||
try {
|
||||
df.show( fm, tag );
|
||||
} catch (IllegalStateException ise ) {
|
||||
Log.d( TAG, "error showing tag %s (df: %s)", tag, df );
|
||||
Assert.assertFalse( BuildConfig.DEBUG );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue