commit | 30328dbe381565e9eba39c096aaa939bb484913c | [log] [tgz] |
---|---|---|
author | Gary Mai <garymai@google.com> | Tue Dec 20 15:20:21 2016 -0800 |
committer | Gary Mai <garymai@google.com> | Tue Dec 20 15:38:52 2016 -0800 |
tree | 3989c89d0af25268fd7d1685fa5e5a9ecb2c3912 | |
parent | 159830c8880d8f48c57e25a69cbc4bcdbd4c8857 [diff] |
Wrap show dialog fragment in isSafeToCommitTransactions check The dialog fragment is shown from an onClick handler which can be run after onSaveInstanceState is called which results in the IllegalStateException. Our base activity classes already have a method to check for this, so call it before attempting to show the dialog fragment. Also delete an unused class. Test: N/A Bug: 33341841 Change-Id: I1e27bd473666025251c95f8d497c71a248a5a2c8