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

Commit 1fd6a633 authored by DvTonder's avatar DvTonder
Browse files

Telephony: Forward port National data roaming and make it optional (1/2)

  by Robin Morawetz (Rdlgrmpf) and Davor Bertovic (LorD ClockaN)
  Id: Ief840d818ecf4b8ebb088fab34f01878d0a9f2d7

Change-Id: Icaaeeebdb85b2c066e0ce2cccc43daac3fa37daa
parent 243830fa
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1283,7 +1283,10 @@ final class GsmServiceStateTracker extends ServiceStateTracker {
        } catch (Exception e){
        }

        return gsmRoaming && !(equalsMcc && (equalsOnsl || equalsOnss));
        // Add national roaming and make it optional
        boolean mvnoRoaming = Settings.System.getInt(phone.getContext().getContentResolver(),
            Settings.System.MVNO_ROAMING, 0) == 1;
        return gsmRoaming && !(equalsMcc && (equalsOnsl || equalsOnss || mvnoRoaming));
    }

    private static int twoDigitsAt(String s, int offset) {