Extend documentation, proper method naming, use of deprecated method annotation

This commit is contained in:
Dominik Schürmann
2016-02-22 15:19:06 +01:00
parent 6379ce1faa
commit f54f12c48c
7 changed files with 53 additions and 44 deletions

View File

@@ -400,6 +400,10 @@ public class ImportKeysActivity extends BaseActivity
super.onActivityResult(requestCode, resultCode, data);
}
/**
* Defines how the result of this activity is returned.
* Is overwritten in RemoteImportKeysActivity
*/
protected void handleResult(ImportKeyResult result) {
String intentAction = getIntent().getAction();

View File

@@ -514,6 +514,10 @@ public class PassphraseDialogActivity extends FragmentActivity {
}
/**
* Defines how the result of this activity is returned.
* Is overwritten in RemotePassphraseDialogActivity
*/
protected void handleResult(CryptoInputParcel inputParcel) {
// also return passphrase back to activity
Intent returnIntent = new Intent();

View File

@@ -267,7 +267,7 @@ public class SecurityTokenOperationActivity extends BaseSecurityTokenNfcActivity
}
@Override
protected void onNfcPostExecute() {
protected final void onNfcPostExecute() {
handleResult(mInputParcel);
// show finish
@@ -299,6 +299,10 @@ public class SecurityTokenOperationActivity extends BaseSecurityTokenNfcActivity
}.execute();
}
/**
* Defines how the result of this activity is returned.
* Is overwritten in RemoteSecurityTokenOperationActivity
*/
protected void handleResult(CryptoInputParcel inputParcel) {
Intent result = new Intent();
// send back the CryptoInputParcel we received