mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-23 17:22:16 -05:00
make KeyItem serializble, for state in TokenTextCompleteView
This commit is contained in:
parent
8be6450a36
commit
1406eec2dc
@ -22,6 +22,7 @@ import android.text.TextUtils;
|
||||
|
||||
import org.sufficientlysecure.keychain.pgp.exception.PgpKeyNotFoundException;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
@ -91,7 +92,7 @@ public abstract class KeyRing {
|
||||
return userIdString;
|
||||
}
|
||||
|
||||
public static class UserId {
|
||||
public static class UserId implements Serializable {
|
||||
public final String name;
|
||||
public final String email;
|
||||
public final String comment;
|
||||
|
@ -18,6 +18,7 @@
|
||||
package org.sufficientlysecure.keychain.ui.adapter;
|
||||
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.TimeZone;
|
||||
@ -240,7 +241,8 @@ public class KeyAdapter extends CursorAdapter {
|
||||
return super.getItemId(position);
|
||||
}
|
||||
|
||||
public static class KeyItem {
|
||||
// must be serializable for TokenCompleTextView state
|
||||
public static class KeyItem implements Serializable {
|
||||
|
||||
public final String mUserIdFull;
|
||||
public final KeyRing.UserId mUserId;
|
||||
|
Loading…
Reference in New Issue
Block a user