mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Bring back JS bundle loading progress bar on Android
Summary: The progress bar on Android was disabled in D5329011 because of T19653381, but was never enabled again. I spent some time trying to reproduce the issue of the bundle being stuck while loading, but didn't succeed. So let's enable the progress bar and monitor whether people would start seeing this bug again. Reviewed By: cpojer Differential Revision: D17148134 fbshipit-source-id: 5130b809460bc743d26a6e88961f81061089fe1d
This commit is contained in:
committed by
Facebook Github Bot
parent
d8d3ed508b
commit
7b9d6d19e2
@@ -109,11 +109,7 @@ public class BundleDownloader {
|
||||
final Request request =
|
||||
requestBuilder
|
||||
.url(formatBundleUrl(bundleURL))
|
||||
// FIXME: there is a bug that makes MultipartStreamReader to never find the end of the
|
||||
// multipart message. This temporarily disables the multipart mode to work around it,
|
||||
// but
|
||||
// it means there is no progress bar displayed in the React Native overlay anymore.
|
||||
// .addHeader("Accept", "multipart/mixed")
|
||||
.addHeader("Accept", "multipart/mixed")
|
||||
.build();
|
||||
mDownloadBundleFromURLCall = Assertions.assertNotNull(mClient.newCall(request));
|
||||
mDownloadBundleFromURLCall.enqueue(
|
||||
|
||||
Reference in New Issue
Block a user