Fix Unusable signing key not properly disabled, Issue #1468
Signed-off-by: Durgesh <007durgesh219@gmail.com>
This commit is contained in:
@@ -113,11 +113,6 @@ public class CertifyKeySpinner extends KeySpinner {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
boolean isItemEnabled(Cursor cursor) {
|
boolean isItemEnabled(Cursor cursor) {
|
||||||
// "none" entry is always enabled!
|
|
||||||
if (cursor.getPosition() == 0) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (cursor.getInt(KeyAdapter.INDEX_IS_REVOKED) != 0) {
|
if (cursor.getInt(KeyAdapter.INDEX_IS_REVOKED) != 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -72,11 +72,6 @@ public class SignKeySpinner extends KeySpinner {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
boolean isItemEnabled(Cursor cursor) {
|
boolean isItemEnabled(Cursor cursor) {
|
||||||
// "none" entry is always enabled!
|
|
||||||
if (cursor.getPosition() == 0) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (cursor.getInt(KeyAdapter.INDEX_IS_REVOKED) != 0) {
|
if (cursor.getInt(KeyAdapter.INDEX_IS_REVOKED) != 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user