Change "Hide/Show" Inspector to "Toggle"

Summary:The JS and native state can get out of sync if you reload JS while inspecting, so don't even bother trying on
native.

Reviewed By: lexs

Differential Revision: D3203020

fb-gh-sync-id: a3b7294bb0c28c0508f508be53d3ef895a7195b0
fbshipit-source-id: a3b7294bb0c28c0508f508be53d3ef895a7195b0
This commit is contained in:
Spencer Ahrens authored and Facebook Github Bot 2 committed 2016-04-21 16:57:20 -07:00
1 parent 91dcc9ac8e
commit 47dff23fe4
3 files changed
+3 -6

No files matched your search

@@ -296,9 +296,7 @@ public class DevSupportManagerImpl implements DevSupportManager {
}
});
options.put(
mDevSettings.isElementInspectorEnabled()
? mApplicationContext.getString(R.string.catalyst_element_inspector_off)
: mApplicationContext.getString(R.string.catalyst_element_inspector),
mApplicationContext.getString(R.string.catalyst_element_inspector),
new DevOptionHandler() {
@Override
public void onOptionSelected() {