Skip to content
Permalink
Browse files

fix: set js delta bundle default value to false (#24848)

Summary:
When running Android app for the first time, the packager is requesting delta bundles from metro instead of a bundle (in dev settings delta bundles are disabled by default and marked as experimental). UI of dev settings is not consistent with the current state, to turn off delta bundles you have to enable them and then disable.

[Android] [Fixed] - Disable delta bundles on the first app run
Pull Request resolved: #24848

Differential Revision: D15334059

Pulled By: cpojer

fbshipit-source-id: 384a8abba64c54db3656a4d5d0e24acc825870c8
  • Loading branch information...
wojteg1337 authored and facebook-github-bot committed May 14, 2019
1 parent cd9adda commit e4aff423ac0421f4af7b9a111e5ad954f489da19
@@ -136,7 +136,7 @@ public void setElementInspectorEnabled(boolean enabled) {

@SuppressLint("SharedPreferencesUse")
public boolean isBundleDeltasEnabled() {
return mPreferences.getBoolean(PREFS_JS_BUNDLE_DELTAS_KEY, true);
return mPreferences.getBoolean(PREFS_JS_BUNDLE_DELTAS_KEY, false);
}

@SuppressLint("SharedPreferencesUse")

0 comments on commit e4aff42

Please sign in to comment.
You can’t perform that action at this time.