Skip to content

Commit 85910e3

Browse files
committed
Addressing Rayo's comments.
1 parent f203277 commit 85910e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

firebase-installations/src/main/java/com/google/firebase/installations/FirebaseInstallations.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ public Task<String> getId() {
233233
}
234234

235235
Task<String> task = addGetIdListener();
236-
backgroundExecutor.execute(() -> doRegistrationInternal(false));
236+
backgroundExecutor.execute(() -> doRegistrationOrRefresh(false));
237237
return task;
238238
}
239239

@@ -250,7 +250,7 @@ public Task<String> getId() {
250250
public Task<InstallationTokenResult> getToken(boolean forceRefresh) {
251251
preConditionChecks();
252252
Task<InstallationTokenResult> task = addGetAuthTokenListener();
253-
backgroundExecutor.execute(() -> doRegistrationInternal(forceRefresh));
253+
backgroundExecutor.execute(() -> doRegistrationOrRefresh(forceRefresh));
254254
return task;
255255
}
256256

@@ -329,7 +329,7 @@ private synchronized String getCacheFid() {
329329
* @param forceRefresh true if this is for a getAuthToken call and if the caller wants to fetch a
330330
* new auth token from the server even if an unexpired auth token exists on the client.
331331
*/
332-
private final void doRegistrationInternal(boolean forceRefresh) {
332+
private final void doRegistrationOrRefresh(boolean forceRefresh) {
333333

334334
PersistedInstallationEntry prefs = getPrefsWithGeneratedIdMultiProcessSafe();
335335

0 commit comments

Comments
 (0)