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

Commit 392d2f44 authored by Sridhar Dubbaka's avatar Sridhar Dubbaka Committed by Gerrit - the friendly Code Review server
Browse files

Fix few crashes in Sim Settings.

Add changes to fix following Sim Settings crashes.
-Simstatus
-ImeiInformation
-IccLockSettings

Change-Id: I3ff272dfce46ab82e96e33cdc0eebaf734877bae
parent c8cdc19e
Loading
Loading
Loading
Loading
+24 −0
Original line number Original line Diff line number Diff line
@@ -1256,6 +1256,30 @@
            </intent-filter>
            </intent-filter>
        </activity>
        </activity>


        <!-- Runs in the phone process since it needs access to the Phone object -->
        <activity android:name=".deviceinfo.SimStatus"
                android:label="@string/sim_status_title"
                android:theme="@style/Theme.SubSettingsDialogWhenLarge"
                android:process="com.android.phone">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.VOICE_LAUNCH" />
            </intent-filter>
        </activity>

        <!-- Runs in the phone process since it needs access to the Phone object -->
        <activity android:name=".deviceinfo.ImeiInformation"
                android:label="@string/imei_information_title"
                android:theme="@style/Theme.SubSettingsDialogWhenLarge"
                android:process="com.android.phone">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.VOICE_LAUNCH" />
            </intent-filter>
        </activity>

        <!-- Runs in the phone process since it needs access to the Phone object -->
        <!-- Runs in the phone process since it needs access to the Phone object -->
        <activity
        <activity
            android:name=".deviceinfo.MSimStatus"
            android:name=".deviceinfo.MSimStatus"
+2 −3
Original line number Original line Diff line number Diff line
@@ -29,7 +29,6 @@ import android.preference.CheckBoxPreference;
import android.preference.Preference;
import android.preference.Preference;
import android.preference.PreferenceActivity;
import android.preference.PreferenceActivity;
import android.preference.PreferenceScreen;
import android.preference.PreferenceScreen;
import android.preference.SwitchPreference;
import android.telephony.SubscriptionManager;
import android.telephony.SubscriptionManager;
import android.util.Log;
import android.util.Log;
import android.widget.Toast;
import android.widget.Toast;
@@ -94,7 +93,7 @@ public class IccLockSettings extends PreferenceActivity
    private Phone mPhone;
    private Phone mPhone;


    private EditPinPreference mPinDialog;
    private EditPinPreference mPinDialog;
    private SwitchPreference mPinToggle;
    private CheckBoxPreference mPinToggle;


    private Resources mRes;
    private Resources mRes;


@@ -170,7 +169,7 @@ public class IccLockSettings extends PreferenceActivity
        addPreferencesFromResource(R.xml.sim_lock_settings);
        addPreferencesFromResource(R.xml.sim_lock_settings);


        mPinDialog = (EditPinPreference) findPreference(PIN_DIALOG);
        mPinDialog = (EditPinPreference) findPreference(PIN_DIALOG);
        mPinToggle = (SwitchPreference) findPreference(PIN_TOGGLE);
        mPinToggle = (CheckBoxPreference) findPreference(PIN_TOGGLE);
        if (savedInstanceState != null &&
        if (savedInstanceState != null &&
               savedInstanceState.containsKey(DIALOG_STATE)) {
               savedInstanceState.containsKey(DIALOG_STATE)) {
            mDialogState = savedInstanceState.getInt(DIALOG_STATE);
            mDialogState = savedInstanceState.getInt(DIALOG_STATE);