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

Commit 42f77bc7 authored by Yoshiaki Naka's avatar Yoshiaki Naka
Browse files

Avoid ClassCastException thrown while parsing EF_SPDI

ArrayList.toArray() with no argument returns Object[] which cannot be
cast to String[]. The same method with the argument T[] shall be used.

Bug: 142698666
Test: Manual test with several commercial SIM cards.

Change-Id: Ie96406fa6bceb72372b4f64332988f7af289b165
parent 7bd6487b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1806,7 +1806,7 @@ public class SIMRecords extends IccRecords {
                tmpSpdi.add(plmnCode);
            }
        }
        mSpdi = (String[]) tmpSpdi.toArray();
        mSpdi = tmpSpdi.toArray(new String[tmpSpdi.size()]);
    }

    /**