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

Commit b85c3743 authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 1155 into donut

* changes:
  Don't allow negative numbers in ToneGenerator toneType parameter Bug 1836596
parents e87bf139 4c922470
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -357,7 +357,7 @@ ToneGenerator::~ToneGenerator() {
bool ToneGenerator::startTone(int toneType) {
    bool lResult = false;

    if (toneType >= NUM_TONES)
    if ((toneType < 0) || (toneType >= NUM_TONES))
        return lResult;

    if (mState == TONE_IDLE) {