From 427e464bb95e4e0ecc7455e71b5d477014618200 Mon Sep 17 00:00:00 2001 From: "Andrew Chen (Eng)" Date: Mon, 12 Feb 2018 16:29:16 -0800 Subject: [PATCH] Fix localization crash in DevSettingsActivity Differential Revision: D6970534 fbshipit-source-id: da1df549b6157e5ec684cf4eed5f411740a73ed0 --- .../java/com/facebook/react/devsupport/DevSettingsActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSettingsActivity.java b/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSettingsActivity.java index 3b39ea13a..13a6efdb4 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSettingsActivity.java +++ b/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSettingsActivity.java @@ -24,7 +24,7 @@ public class DevSettingsActivity extends PreferenceActivity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); - setTitle(R.string.catalyst_settings_title); + setTitle(getApplication().getResources().getString(R.string.catalyst_settings_title)); addPreferencesFromResource(R.xml.preferences); } }