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

Commit 7c90d756 authored by Eric Laurent's avatar Eric Laurent Committed by Android (Google) Code Review
Browse files

Merge "Fix audio mode log."

parents 00cc7772 4f9e0f17
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -48,14 +48,15 @@ static const char* routingModeStrings[] =
    "CURRENT",
    "CURRENT",
    "NORMAL",
    "NORMAL",
    "RINGTONE",
    "RINGTONE",
    "IN_CALL"
    "IN_CALL",
    "IN_COMMUNICATION"
};
};


static const char* routeNone = "NONE";
static const char* routeNone = "NONE";


static const char* displayMode(int mode)
static const char* displayMode(int mode)
{
{
    if ((mode < -2) || (mode > 2))
    if ((mode < AudioSystem::MODE_INVALID) || (mode >= AudioSystem::NUM_MODES))
        return routingModeStrings[0];
        return routingModeStrings[0];
    return routingModeStrings[mode+3];
    return routingModeStrings[mode+3];
}
}