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:
Ramanpreet Nara
2021-06-15 18:19:43 -07:00
committed by Facebook GitHub Bot
parent 18165367b0
commit e91fb05db7
2 changed files with 5 additions and 3 deletions
@@ -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() {