Skip to content

Commit 7d77977

Browse files
Jean-Baptiste Queruandroid code review
authored andcommitted
Merge "Fix Force Close when enable airplane mode"
2 parents aa8cac8 + c0ebaea commit 7d77977

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

telephony/java/com/android/internal/telephony/gsm/GSMPhone.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1240,7 +1240,7 @@ public void handleMessage (Message msg) {
12401240
// If the radio shuts off or resets while one of these
12411241
// is pending, we need to clean up.
12421242

1243-
for (int i = 0, s = mPendingMMIs.size() ; i < s; i++) {
1243+
for (int i = mPendingMMIs.size() - 1; i >= 0; i--) {
12441244
if (mPendingMMIs.get(i).isPendingUSSD()) {
12451245
mPendingMMIs.get(i).onUssdFinishedError();
12461246
}

0 commit comments

Comments
 (0)