hide keyboard before operations, too

This commit is contained in:
Vincent Breitmoser
2015-07-08 15:23:55 +02:00
parent a74d86c3d8
commit 74a4effcd8
2 changed files with 5 additions and 0 deletions

View File

@@ -277,16 +277,19 @@ public class EncryptFilesFragment
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case R.id.encrypt_save: {
hideKeyboard();
mAfterEncryptAction = AfterEncryptAction.SAVE;
cryptoOperation();
break;
}
case R.id.encrypt_share: {
hideKeyboard();
mAfterEncryptAction = AfterEncryptAction.SHARE;
cryptoOperation();
break;
}
case R.id.encrypt_copy: {
hideKeyboard();
mAfterEncryptAction = AfterEncryptAction.COPY;
cryptoOperation();
break;

View File

@@ -166,11 +166,13 @@ public class EncryptTextFragment
// break;
// }
case R.id.encrypt_copy: {
hideKeyboard();
mShareAfterEncrypt = false;
cryptoOperation();
break;
}
case R.id.encrypt_share: {
hideKeyboard();
mShareAfterEncrypt = true;
cryptoOperation();
break;