Skip to content

Commit

Permalink
A quick fix for inital fb4a_debug launch crashes due to fetching stri…
Browse files Browse the repository at this point in the history
…ng `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
  • Loading branch information
Mengke Ding authored and facebook-github-bot committed Jan 6, 2022
1 parent 78614de commit a03bd2f
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,7 @@ public BridgeDevSupportManager(
}

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() {
Expand Down

0 comments on commit a03bd2f

Please sign in to comment.