Skip to content

Commit 2ca1c0d

Browse files
committed
update
1 parent dac0a89 commit 2ca1c0d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

firebase-installations/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Unreleased
2-
* [fixed] Fix FIS ID duplication issue from backup data. (#7025)
2+
* [fixed] Mitigated FIS ID duplication issue from backup data. (#7025)
33

44
# 18.0.0
55
* [changed] Bump internal dependencies

firebase-installations/src/main/java/com/google/firebase/installations/local/PersistedInstallation.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ private File getDataFile() {
9595
if (dataFile.exists()) {
9696
return dataFile;
9797
}
98+
// Data associated with FID shouldn't be stored in backup directory. Hence if the FID data
99+
// is present in the backup directory you move it to the non backup directory.
98100
File dataFileBackup =
99101
new File(
100102
firebaseApp.getApplicationContext().getFilesDir(),
@@ -105,6 +107,7 @@ private File getDataFile() {
105107
TAG,
106108
"Unable to move the file from back up to non back up directory",
107109
new IOException("Unable to move the file from back up to non back up directory"));
110+
return dataFileBackup;
108111
}
109112
}
110113
}

0 commit comments

Comments
 (0)