allow state loss when yubikey fragment is loaded

This commit is contained in:
Vincent Breitmoser 2015-05-16 23:29:59 +02:00
parent a81474b7a5
commit 4b2c8a1309

View File

@ -596,7 +596,8 @@ public class ViewKeyActivity extends BaseNfcActivity implements
manager.beginTransaction()
.addToBackStack("yubikey")
.replace(R.id.view_key_fragment, frag)
.commit();
// if this is called while the activity wasn't resumed, just forget it happened
.commitAllowingStateLoss();
}
private void encrypt(Uri dataUri, boolean text) {