Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2540d66b authored by Clara Bayarri's avatar Clara Bayarri Committed by Android (Google) Code Review
Browse files

Merge "Remove invisible object in A11y Settings screens' menu" into nyc-dev

parents 8fa3d445 e8123502
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -114,10 +114,12 @@ public abstract class ToggleFeaturePreferenceFragment
    @Override
    public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
        super.onCreateOptionsMenu(menu, inflater);
        if (mSettingsTitle != null && mSettingsIntent != null) {
            MenuItem menuItem = menu.add(mSettingsTitle);
            menuItem.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);
            menuItem.setIntent(mSettingsIntent);
        }
    }

    protected void onInstallSwitchBarToggleSwitch() {
        // Implement this to set a checked listener.