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

Commit af569ca6 authored by Tyler Gunn's avatar Tyler Gunn
Browse files

DO NOT MERGE Fix sorting issue during emergency call attempt.

Fix the integer overflow/underflow caused by sorting of duplicate
phoneaccounts during emergency call attempt.

Bug: 208267659
Test: Added unit test (see https://googleplex-android-review.git.corp.google.com/c/platform/packages/services/Telecomm/+/16372187)
Merged-In: I736edaa4dd26527f506ff1fa238c022894302db0
Change-Id: I736edaa4dd26527f506ff1fa238c022894302db0
parent f3f2d7c2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -114,7 +114,7 @@ public final class TelephonyUtil {

                // Then by hashcode
                if (retval == 0) {
                    retval = account1.hashCode() - account2.hashCode();
                    retval = Integer.compare(account1.hashCode(), account2.hashCode());
                }
                return retval;
            }