Skip to content

Commit

Permalink
for 'use_cached_bundle', set default to true
Browse files Browse the repository at this point in the history
  • Loading branch information
qbig committed Jan 9, 2016
1 parent 1992f1c commit ff129e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ public void onPackagerStatusFetched(final boolean packagerIsRunning) {
new Runnable() {
@Override
public void run() {
if (packagerIsRunning || !mDevSupportManager.hasUpToDateJSBundleInCache()) {
if (packagerIsRunning) {
mDevSupportManager.handleReloadJS();
} else {
recreateReactContextInBackgroundFromBundleFile();
Expand Down
2 changes: 1 addition & 1 deletion ReactAndroid/src/main/res/devsupport/xml/preferences.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<CheckBoxPreference
android:key="use_cached_bundle"
android:title="Use Cached Bundle"
android:summary="Use prefetched JS bundle stored locally."
android:summary="Use the last JS bundle downloaded from the packager if the packager cannot be reached."
android:defaultValue="true"
/>
</PreferenceCategory>
Expand Down

0 comments on commit ff129e1

Please sign in to comment.