allow state loss when yubikey fragment is loaded

This commit is contained in:
Vincent Breitmoser 2015-05-16 23:29:59 +02:00
parent d06ae7f691
commit f6643962af

View File

@ -596,7 +596,8 @@ public class ViewKeyActivity extends BaseNfcActivity implements
manager.beginTransaction() manager.beginTransaction()
.addToBackStack("yubikey") .addToBackStack("yubikey")
.replace(R.id.view_key_fragment, frag) .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) { private void encrypt(Uri dataUri, boolean text) {