mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
DevMenu: Change "Toggle Inspector" to Show/Hide Element Inspector
Summary: Rationale: - This makes the element inspector button consistent with the Fast Refresh, Perf Monitor and other buttons in the DevMenu - This makes the button more informative Changelog: [Android][Changed] Rename the "Toggle Inspector" DevMenu item to "Hide/Show Element Inspector" Reviewed By: JoshuaGross Differential Revision: D29146871 fbshipit-source-id: 8e8c19217ea2ff2f1d176521aa22200058e7e643
This commit is contained in:
committed by
Facebook GitHub Bot
parent
18165367b0
commit
e91fb05db7
@@ -474,8 +474,9 @@ public abstract class DevSupportManagerBase implements DevSupportManager {
|
||||
});
|
||||
|
||||
options.put(
|
||||
// NOTE: `isElementInspectorEnabled` is not guaranteed to be accurate.
|
||||
mApplicationContext.getString(R.string.catalyst_inspector),
|
||||
mDevSettings.isElementInspectorEnabled()
|
||||
? mApplicationContext.getString(R.string.catalyst_inspector_stop)
|
||||
: mApplicationContext.getString(R.string.catalyst_inspector),
|
||||
new DevOptionHandler() {
|
||||
@Override
|
||||
public void onOptionSelected() {
|
||||
|
||||
Reference in New Issue
Block a user