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

Commit 30f91d6e authored by Android (Google) Code Review's avatar Android (Google) Code Review Committed by The Android Open Source Project
Browse files

am b85c3743: Merge change 1155 into donut

Merge commit 'b85c3743'

* commit 'b85c3743':
  Don't allow negative numbers in ToneGenerator toneType parameter
parents 9cfd9475 b85c3743
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) {