From e4aff423ac0421f4af7b9a111e5ad954f489da19 Mon Sep 17 00:00:00 2001 From: wojteg1337 Date: Tue, 14 May 2019 04:17:00 -0700 Subject: [PATCH] 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: https://github.com/facebook/react-native/pull/24848 Differential Revision: D15334059 Pulled By: cpojer fbshipit-source-id: 384a8abba64c54db3656a4d5d0e24acc825870c8 --- .../java/com/facebook/react/devsupport/DevInternalSettings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevInternalSettings.java b/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevInternalSettings.java index 123b728d7cba50..8d64830a528cf0 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevInternalSettings.java +++ b/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevInternalSettings.java @@ -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")