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

Commit 1abe5a78 authored by Amit Mahajan's avatar Amit Mahajan Committed by android-build-merger
Browse files

Merge "Do not call update() for read only APNs." into oc-dev am: 8f18f8e0

am: 563d2d5a

Change-Id: I10631e103cfc784832216281a278128d740f8da6
parents 97686254 563d2d5a
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -788,9 +788,14 @@ public class ApnEditor extends SettingsPreferenceFragment
     * Check the key fields' validity and save if valid.
     * @param force save even if the fields are not valid, if the app is
     *        being suspended
     * @return true if the data was saved
     * @return true if there's no error
     */
    private boolean validateAndSave(boolean force) {
        // nothing to do if it's a read only APN
        if (mReadOnlyApn) {
            return true;
        }

        String name = checkNotSet(mName.getText());
        String apn = checkNotSet(mApn.getText());
        String mcc = checkNotSet(mMcc.getText());