Merge branch 'edit-fixes'

This commit is contained in:
Ashley Hughes 2014-02-02 00:15:23 +00:00
commit 5e4b98f748
2 changed files with 8 additions and 0 deletions

View File

@ -41,6 +41,7 @@ public class SelectSecretKeyLayoutFragment extends Fragment {
private TextView mKeyUserId;
private TextView mKeyUserIdRest;
private BootstrapButton mSelectKeyButton;
private Boolean mFilterCertify;
private SelectSecretKeyCallback mCallback;
@ -54,6 +55,10 @@ public class SelectSecretKeyLayoutFragment extends Fragment {
mCallback = callback;
}
public void setFilterCertify(Boolean filterCertify) {
mFilterCertify = filterCertify;
}
public void selectKey(long secretKeyId) {
if (secretKeyId == Id.key.none) {
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);
mSelectKeyButton = (BootstrapButton) view
.findViewById(R.id.select_secret_key_select_key_button);
mFilterCertify = false;
mSelectKeyButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
@ -107,6 +113,7 @@ public class SelectSecretKeyLayoutFragment extends Fragment {
private void startSelectKeyActivity() {
Intent intent = new Intent(getActivity(), SelectSecretKeyActivity.class);
intent.putExtra(SelectSecretKeyActivity.EXTRA_FILTER_CERTIFY, mFilterCertify);
startActivityForResult(intent, REQUEST_CODE_SELECT_KEY);
}

View File

@ -82,6 +82,7 @@ public class SignKeyActivity extends SherlockFragmentActivity implements
mSelectKeyFragment = (SelectSecretKeyLayoutFragment) getSupportFragmentManager()
.findFragmentById(R.id.sign_key_select_key_fragment);
mSelectKeyFragment.setCallback(this);
mSelectKeyFragment.setFilterCertify(true);
mSelectKeyserverSpinner = (Spinner) findViewById(R.id.sign_key_keyserver);
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,