mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-12-24 07:58:50 -05:00
Display result in multi certify
This commit is contained in:
parent
4b372a5c33
commit
1dbb3db320
@ -385,7 +385,7 @@ public class AddKeysActivity extends ActionBarActivity implements
|
||||
|
||||
finish();
|
||||
Intent certifyIntent = new Intent(AddKeysActivity.this, MultiCertifyKeyActivity.class);
|
||||
certifyIntent.putExtra(ImportKeyResult.EXTRA_RESULT, result);
|
||||
certifyIntent.putExtra(MultiCertifyKeyActivity.EXTRA_RESULT, result);
|
||||
certifyIntent.putExtra(MultiCertifyKeyActivity.EXTRA_KEY_IDS, result.getImportedMasterKeyIds());
|
||||
startActivity(certifyIntent);
|
||||
|
||||
|
@ -28,6 +28,7 @@ import org.sufficientlysecure.keychain.R;
|
||||
*/
|
||||
public class MultiCertifyKeyActivity extends ActionBarActivity {
|
||||
|
||||
public static final String EXTRA_RESULT = "operation_result";
|
||||
public static final String EXTRA_KEY_IDS = "extra_key_ids";
|
||||
|
||||
@Override
|
||||
|
@ -53,6 +53,7 @@ import org.sufficientlysecure.keychain.service.KeychainIntentService;
|
||||
import org.sufficientlysecure.keychain.service.KeychainIntentServiceHandler;
|
||||
import org.sufficientlysecure.keychain.service.PassphraseCacheService;
|
||||
import org.sufficientlysecure.keychain.service.results.CertifyResult;
|
||||
import org.sufficientlysecure.keychain.service.results.OperationResult;
|
||||
import org.sufficientlysecure.keychain.ui.adapter.MultiUserIdsAdapter;
|
||||
import org.sufficientlysecure.keychain.ui.dialog.PassphraseDialogFragment;
|
||||
import org.sufficientlysecure.keychain.ui.util.Notify;
|
||||
@ -105,6 +106,12 @@ public class MultiCertifyKeyFragment extends LoaderFragment
|
||||
return;
|
||||
}
|
||||
|
||||
OperationResult result = mActivity.getIntent().getParcelableExtra(MultiCertifyKeyActivity.EXTRA_RESULT);
|
||||
if (result != null) {
|
||||
// display result from import
|
||||
result.createNotify(mActivity).show();
|
||||
}
|
||||
|
||||
mUserIdsAdapter = new MultiUserIdsAdapter(mActivity, null, 0);
|
||||
mUserIds.setAdapter(mUserIdsAdapter);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user