Fix pre-selection for encrypt
This commit is contained in:
@@ -26,7 +26,6 @@ import android.view.LayoutInflater;
|
|||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
import android.widget.CheckBox;
|
import android.widget.CheckBox;
|
||||||
import android.widget.LinearLayout;
|
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
import com.beardedhen.androidbootstrap.BootstrapButton;
|
import com.beardedhen.androidbootstrap.BootstrapButton;
|
||||||
@@ -82,12 +81,14 @@ public class EncryptAsymmetricFragment extends Fragment {
|
|||||||
mSecretKeyId = signatureKeyId;
|
mSecretKeyId = signatureKeyId;
|
||||||
// update key selection in EncryptActivity
|
// update key selection in EncryptActivity
|
||||||
mKeySelectionListener.onSigningKeySelected(signatureKeyId);
|
mKeySelectionListener.onSigningKeySelected(signatureKeyId);
|
||||||
|
updateView();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setEncryptionKeyIds(long[] encryptionKeyIds) {
|
private void setEncryptionKeyIds(long[] encryptionKeyIds) {
|
||||||
mEncryptionKeyIds = encryptionKeyIds;
|
mEncryptionKeyIds = encryptionKeyIds;
|
||||||
// update key selection in EncryptActivity
|
// update key selection in EncryptActivity
|
||||||
mKeySelectionListener.onEncryptionKeysSelected(encryptionKeyIds);
|
mKeySelectionListener.onEncryptionKeysSelected(encryptionKeyIds);
|
||||||
|
updateView();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -113,7 +114,6 @@ public class EncryptAsymmetricFragment extends Fragment {
|
|||||||
selectSecretKey();
|
selectSecretKey();
|
||||||
} else {
|
} else {
|
||||||
setSignatureKeyId(Id.key.none);
|
setSignatureKeyId(Id.key.none);
|
||||||
updateView();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -259,7 +259,6 @@ public class EncryptAsymmetricFragment extends Fragment {
|
|||||||
setEncryptionKeyIds(bundle
|
setEncryptionKeyIds(bundle
|
||||||
.getLongArray(SelectPublicKeyActivity.RESULT_EXTRA_MASTER_KEY_IDS));
|
.getLongArray(SelectPublicKeyActivity.RESULT_EXTRA_MASTER_KEY_IDS));
|
||||||
}
|
}
|
||||||
updateView();
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -270,7 +269,6 @@ public class EncryptAsymmetricFragment extends Fragment {
|
|||||||
} else {
|
} else {
|
||||||
setSignatureKeyId(Id.key.none);
|
setSignatureKeyId(Id.key.none);
|
||||||
}
|
}
|
||||||
updateView();
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user