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

Commit 258add92 authored by Jack Yu's avatar Jack Yu
Browse files

Revert the API behavior

getSuggestedRetryTime should return 0 when suggested retry
time is not set. This is to match the behavior prior ag/12913222

Fix: 172313389
Test: Manual
Change-Id: Ie06f2343b21caef252e981b734dd57139e66cbad
parent 9f598259
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -240,6 +240,12 @@ public final class DataCallResponse implements Parcelable {
     */
    @Deprecated
    public int getSuggestedRetryTime() {
        // To match the pre-deprecated getSuggestedRetryTime() behavior.
        if (mSuggestedRetryTime == RETRY_INTERVAL_UNDEFINED) {
            return 0;
        } else if (mSuggestedRetryTime > Integer.MAX_VALUE) {
            return Integer.MAX_VALUE;
        }
        return (int) mSuggestedRetryTime;
    }