Skip to content

Commit 300c6f2

Browse files
authored
Merge f73bbea into d37ac1e
2 parents d37ac1e + f73bbea commit 300c6f2

File tree

1 file changed

+4
-3
lines changed
  • firebase-appdistribution/src/main/java/com/google/firebase/appdistribution/impl

1 file changed

+4
-3
lines changed

firebase-appdistribution/src/main/java/com/google/firebase/appdistribution/impl/ApkUpdater.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,12 @@ private void installApk(File file, boolean showDownloadNotificationManager) {
111111
activity -> apkInstaller.installApk(file.getPath(), activity))
112112
.addOnSuccessListener(lightweightExecutor, unused -> cachedUpdateTask.setResult())
113113
.addOnFailureListener(
114-
lightweightExecutor,
114+
blockingExecutor, // Getting the file length performs disk IO
115115
e -> {
116+
long fileLength = file.length();
116117
postUpdateProgress(
117-
file.length(),
118-
file.length(),
118+
fileLength,
119+
fileLength,
119120
UpdateStatus.INSTALL_FAILED,
120121
showDownloadNotificationManager,
121122
R.string.install_failed);

0 commit comments

Comments
 (0)