mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-12-25 00:18:51 -05:00
Merge branch 'edit-fixes'
This commit is contained in:
commit
5e4b98f748
@ -41,6 +41,7 @@ public class SelectSecretKeyLayoutFragment extends Fragment {
|
|||||||
private TextView mKeyUserId;
|
private TextView mKeyUserId;
|
||||||
private TextView mKeyUserIdRest;
|
private TextView mKeyUserIdRest;
|
||||||
private BootstrapButton mSelectKeyButton;
|
private BootstrapButton mSelectKeyButton;
|
||||||
|
private Boolean mFilterCertify;
|
||||||
|
|
||||||
private SelectSecretKeyCallback mCallback;
|
private SelectSecretKeyCallback mCallback;
|
||||||
|
|
||||||
@ -54,6 +55,10 @@ public class SelectSecretKeyLayoutFragment extends Fragment {
|
|||||||
mCallback = callback;
|
mCallback = callback;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setFilterCertify(Boolean filterCertify) {
|
||||||
|
mFilterCertify = filterCertify;
|
||||||
|
}
|
||||||
|
|
||||||
public void selectKey(long secretKeyId) {
|
public void selectKey(long secretKeyId) {
|
||||||
if (secretKeyId == Id.key.none) {
|
if (secretKeyId == Id.key.none) {
|
||||||
mKeyUserId.setText(R.string.api_settings_no_key);
|
mKeyUserId.setText(R.string.api_settings_no_key);
|
||||||
@ -95,6 +100,7 @@ public class SelectSecretKeyLayoutFragment extends Fragment {
|
|||||||
mKeyUserIdRest = (TextView) view.findViewById(R.id.select_secret_key_user_id_rest);
|
mKeyUserIdRest = (TextView) view.findViewById(R.id.select_secret_key_user_id_rest);
|
||||||
mSelectKeyButton = (BootstrapButton) view
|
mSelectKeyButton = (BootstrapButton) view
|
||||||
.findViewById(R.id.select_secret_key_select_key_button);
|
.findViewById(R.id.select_secret_key_select_key_button);
|
||||||
|
mFilterCertify = false;
|
||||||
mSelectKeyButton.setOnClickListener(new OnClickListener() {
|
mSelectKeyButton.setOnClickListener(new OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
@ -107,6 +113,7 @@ public class SelectSecretKeyLayoutFragment extends Fragment {
|
|||||||
|
|
||||||
private void startSelectKeyActivity() {
|
private void startSelectKeyActivity() {
|
||||||
Intent intent = new Intent(getActivity(), SelectSecretKeyActivity.class);
|
Intent intent = new Intent(getActivity(), SelectSecretKeyActivity.class);
|
||||||
|
intent.putExtra(SelectSecretKeyActivity.EXTRA_FILTER_CERTIFY, mFilterCertify);
|
||||||
startActivityForResult(intent, REQUEST_CODE_SELECT_KEY);
|
startActivityForResult(intent, REQUEST_CODE_SELECT_KEY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -82,6 +82,7 @@ public class SignKeyActivity extends SherlockFragmentActivity implements
|
|||||||
mSelectKeyFragment = (SelectSecretKeyLayoutFragment) getSupportFragmentManager()
|
mSelectKeyFragment = (SelectSecretKeyLayoutFragment) getSupportFragmentManager()
|
||||||
.findFragmentById(R.id.sign_key_select_key_fragment);
|
.findFragmentById(R.id.sign_key_select_key_fragment);
|
||||||
mSelectKeyFragment.setCallback(this);
|
mSelectKeyFragment.setCallback(this);
|
||||||
|
mSelectKeyFragment.setFilterCertify(true);
|
||||||
|
|
||||||
mSelectKeyserverSpinner = (Spinner) findViewById(R.id.sign_key_keyserver);
|
mSelectKeyserverSpinner = (Spinner) findViewById(R.id.sign_key_keyserver);
|
||||||
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,
|
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,
|
||||||
|
Loading…
Reference in New Issue
Block a user