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

Commit ad045f62 authored by Jeremy Goldman's avatar Jeremy Goldman Committed by Android (Google) Code Review
Browse files

Merge "Only display options to save and cancel edits to the displayed APN if the APN is editable."

parents 1d048597 77f5ae6d
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -805,8 +805,11 @@ public class ApnEditor extends SettingsPreferenceFragment
    @Override
    public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
        super.onCreateOptionsMenu(menu, inflater);
        if (mReadOnlyApn) {
            return;
        }
        // If it's a new APN, then cancel will delete the new entry in onPause
        if (!mNewApn && !mReadOnlyApn) {
        if (!mNewApn) {
            menu.add(0, MENU_DELETE, 0, R.string.menu_delete)
                .setIcon(R.drawable.ic_delete);
        }