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:
Eric House 2017-05-18 06:37:58 -07:00
parent 7f4d8b1a44
commit a834a8170a

View file

@ -272,7 +272,12 @@ public class XWActivity extends FragmentActivity
trans.addToBackStack( tag );
df.show( trans, tag );
} else {
df.show( fm, tag );
try {
df.show( fm, tag );
} catch (IllegalStateException ise ) {
Log.d( TAG, "error showing tag %s (df: %s)", tag, df );
Assert.assertFalse( BuildConfig.DEBUG );
}
}
}