Skip to content

Commit a838a77

Browse files
committed
Updating firebaseInstallationApi component to avoid error message.
1 parent 1357344 commit a838a77

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

firebase-ml-modeldownloader/src/main/java/com/google/firebase/ml/modeldownloader/FirebaseModelDownloader.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ public class FirebaseModelDownloader {
4141
private final Executor executor;
4242

4343
@RequiresApi(api = VERSION_CODES.KITKAT)
44-
FirebaseModelDownloader(FirebaseApp firebaseApp) {
44+
FirebaseModelDownloader(
45+
FirebaseApp firebaseApp, FirebaseInstallationsApi firebaseInstallationsApi) {
4546
this.firebaseOptions = firebaseApp.getOptions();
4647
this.fileDownloadService = new ModelFileDownloadService(firebaseApp);
4748
this.sharedPreferencesUtil = new SharedPreferencesUtil(firebaseApp);
4849
this.modelDownloadService =
49-
new CustomModelDownloadService(
50-
firebaseOptions, FirebaseApp.getInstance().get(FirebaseInstallationsApi.class));
50+
new CustomModelDownloadService(firebaseOptions, firebaseInstallationsApi);
5151
this.executor = Executors.newCachedThreadPool();
5252
}
5353

0 commit comments

Comments
 (0)