File tree 2 files changed +7
-5
lines changed
firebase-installations/src/main/java/com/google/firebase/installations
2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -218,10 +218,10 @@ private Void registerAndSaveFid(PersistedFidEntry persistedFidEntry)
218
218
219
219
InstallationResponse installationResponse =
220
220
serviceClient .createFirebaseInstallation (
221
- firebaseApp .getOptions ().getApiKey (),
222
- persistedFidEntry .getFirebaseInstallationId (),
223
- firebaseApp .getOptions ().getProjectId (),
224
- getApplicationId ());
221
+ /*apiKey= */ firebaseApp .getOptions ().getApiKey (),
222
+ /*fid= */ persistedFidEntry .getFirebaseInstallationId (),
223
+ /*projectID= */ firebaseApp .getOptions ().getProjectId (),
224
+ /*appId= */ getApplicationId ());
225
225
persistedFid .insertOrUpdatePersistedFidEntry (
226
226
PersistedFidEntry .builder ()
227
227
.setFirebaseInstallationId (persistedFidEntry .getFirebaseInstallationId ())
Original file line number Diff line number Diff line change @@ -82,7 +82,9 @@ public synchronized PersistedFidEntry readPersistedFidEntryValue() {
82
82
prefs .getLong (getSharedPreferencesKey (TOKEN_CREATION_TIME_IN_SECONDS_KEY ), 0 );
83
83
long expiresIn = prefs .getLong (getSharedPreferencesKey (EXPIRES_IN_SECONDS_KEY ), 0 );
84
84
85
- if (fid == null || status == -1 ) {
85
+ if (fid == null
86
+ || status == -1
87
+ || !(status >= 0 && status < RegistrationStatus .values ().length )) {
86
88
return null ;
87
89
}
88
90
You can’t perform that action at this time.
0 commit comments