mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-05 08:45:08 -05:00
Fix KeySpinner on cursor change
This commit is contained in:
parent
a6118877ff
commit
eebd480e8d
@ -133,7 +133,12 @@ public abstract class KeySpinner extends Spinner {
|
||||
|
||||
@Override
|
||||
public long getItemId(int position) {
|
||||
return ((Cursor) getItem(position)).getLong(mIndexMasterKeyId);
|
||||
try {
|
||||
return ((Cursor) getItem(position)).getLong(mIndexMasterKeyId);
|
||||
} catch (Exception e) {
|
||||
// This can happen on concurrent modification :(
|
||||
return Constants.key.none;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user