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

Commit 87f033a1 authored by Lukasz Wasowicz's avatar Lukasz Wasowicz Committed by android-build-merger
Browse files

Merge \"Fix for wrong ringtone when using VoWiFi\"

am: e3596517

Change-Id: I70e9055b946e92cf21c384ac263dbea0d679b23b
parents f8f2f89c e3596517
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -831,7 +831,9 @@ ToneGenerator::ToneGenerator(audio_stream_type_t streamType, float volume, bool
    mProcessSize = (mSamplingRate * 20) / 1000;

    char value[PROPERTY_VALUE_MAX];
    property_get("gsm.operator.iso-country", value, "");
    if (property_get("gsm.operator.iso-country", value, "") == 0) {
        property_get("gsm.sim.operator.iso-country", value, "");
    }
    if (strstr(value, "us") != NULL ||
        strstr(value, "ca") != NULL) {
        mRegion = ANSI;