Only try again paste/set after decryption if the correct password was entered and not e.g. cancel button pressed

This commit is contained in:
Matthew Wong 2015-07-28 03:33:04 -04:00
parent 02bfcf6c3f
commit e937ddf111

View file

@ -28,6 +28,8 @@ public class AutofillActivity extends AppCompatActivity {
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
finish();
AutofillService.getService().decryptAndVerify();
if (resultCode == RESULT_OK) {
AutofillService.getService().decryptAndVerify();
}
}
}