@@ -63,6 +63,7 @@ public enum RegistrationStatus {
63
63
private static final String TOKEN_CREATION_TIME_IN_SECONDS_KEY = "TokenCreationEpochInSecs" ;
64
64
private static final String EXPIRES_IN_SECONDS_KEY = "ExpiresInSecs" ;
65
65
private static final String PERSISTED_STATUS_KEY = "Status" ;
66
+ private static final String FIS_ERROR_KEY = "FisError" ;
66
67
67
68
private static final List <String > FID_PREF_KEYS =
68
69
Arrays .asList (
@@ -71,7 +72,8 @@ public enum RegistrationStatus {
71
72
REFRESH_TOKEN_KEY ,
72
73
TOKEN_CREATION_TIME_IN_SECONDS_KEY ,
73
74
EXPIRES_IN_SECONDS_KEY ,
74
- PERSISTED_STATUS_KEY );
75
+ PERSISTED_STATUS_KEY ,
76
+ FIS_ERROR_KEY );
75
77
76
78
@ GuardedBy ("prefs" )
77
79
private final SharedPreferences prefs ;
@@ -98,6 +100,7 @@ public PersistedInstallationEntry readPersistedInstallationEntryValue() {
98
100
long tokenCreationTime =
99
101
prefs .getLong (getSharedPreferencesKey (TOKEN_CREATION_TIME_IN_SECONDS_KEY ), 0 );
100
102
long expiresIn = prefs .getLong (getSharedPreferencesKey (EXPIRES_IN_SECONDS_KEY ), 0 );
103
+ String fisError = prefs .getString (getSharedPreferencesKey (FIS_ERROR_KEY ), null );
101
104
102
105
if (fid == null || !(status >= 0 && status < RegistrationStatus .values ().length )) {
103
106
return PersistedInstallationEntry .builder ().build ();
@@ -109,6 +112,7 @@ public PersistedInstallationEntry readPersistedInstallationEntryValue() {
109
112
.setRefreshToken (refreshToken )
110
113
.setTokenCreationEpochInSecs (tokenCreationTime )
111
114
.setExpiresInSecs (expiresIn )
115
+ .setFisError (fisError )
112
116
.build ();
113
117
}
114
118
}
@@ -131,6 +135,7 @@ public boolean insertOrUpdatePersistedInstallationEntry(
131
135
entryValue .getTokenCreationEpochInSecs ());
132
136
editor .putLong (
133
137
getSharedPreferencesKey (EXPIRES_IN_SECONDS_KEY ), entryValue .getExpiresInSecs ());
138
+ editor .putString (getSharedPreferencesKey (FIS_ERROR_KEY ), entryValue .getFisError ());
134
139
return editor .commit ();
135
140
}
136
141
}
0 commit comments