A quick fix for inital fb4a_debug launch crashes due to fetching string com.facebook.react.R.string.catalyst_sample_profiler_enable

Summary: Changelog: [Android][Internal] - a quick fix for inital fb4a_debug launch crashes due to fetching string `com.facebook.react.R.string.catalyst_sample_profiler_enable`

Reviewed By: paveldudka

Differential Revision: D33410712

fbshipit-source-id: f63e4b7e9aba3e79d4aa11983d68fee7341972bb
This commit is contained in:
Mengke Ding
2022-01-05 16:36:30 -08:00
committed by Facebook GitHub Bot
parent 78614de1cb
commit a03bd2f13e
@@ -99,11 +99,7 @@ public final class BridgeDevSupportManager extends DevSupportManagerBase {
}
addCustomDevOption(
mIsSamplingProfilerEnabled
? applicationContext.getString(
com.facebook.react.R.string.catalyst_sample_profiler_disable)
: applicationContext.getString(
com.facebook.react.R.string.catalyst_sample_profiler_enable),
mIsSamplingProfilerEnabled ? "Disable Sampling Profiler" : "Enable Sampling Profiler",
new DevOptionHandler() {
@Override
public void onOptionSelected() {