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

Commit 15679e29 authored by ljzyal's avatar ljzyal
Browse files

Telecomm: Fix crash for SIP on dual sims device

Change-Id: I6682c435e498f19741654eda06f6999f59608cfb
parent e08bab39
Loading
Loading
Loading
Loading
+8 −12
Original line number Diff line number Diff line
@@ -60,10 +60,6 @@ import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.lang.Integer;
import java.lang.NumberFormatException;
import java.lang.SecurityException;
import java.lang.String;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
@@ -228,18 +224,18 @@ public final class PhoneAccountRegistrar {
                   Log.i(this, "getUserSelVoicePhoneAccount, emergency account ");
                   return mState.accounts.get(i).getAccountHandle();
                }
                int subId = voiceSubId;
                try {
                    subId = Integer.parseInt(id);
                } catch (NumberFormatException e) {
                    Log.w(this, " NumberFormatException " + e);
                }
                    int subId = Integer.parseInt(id);
                    Log.i(this, "getUserSelectedVoicePhoneAccount, voice subId = "
                            + voiceSubId + " subId = " + subId + " mId = " + id);

                    if (subId == voiceSubId) {
                        prefPhoneAccount = mState.accounts.get(i).getAccountHandle();
                        break;
                    }
                } catch (NumberFormatException e) {
                    Log.w(this, " NumberFormatException " + e);
                }
            }
        }