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
2016-04-21 16:56:07 -07:00
committed by Facebook Github Bot 2
parent 91dcc9ac8e
commit 47dff23fe4
3 changed files with 3 additions and 6 deletions

View File

@@ -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() {