make KeyItem serializble, for state in TokenTextCompleteView

This commit is contained in:
Vincent Breitmoser 2015-05-30 00:16:27 +02:00
parent 8be6450a36
commit 1406eec2dc
2 changed files with 5 additions and 2 deletions

View File

@ -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;

View File

@ -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;