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

Commit 20043f40 authored by Amith Yamasani's avatar Amith Yamasani
Browse files

Don't allow monkey to play with SIM lock settings. Bug # 2358489. DO NOT MERGE

Backport from froyo.

If the monkey is running, exit the SIM lock settings activity.
parent 04e32ff3
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -119,6 +119,11 @@ public class IccLockSettings extends PreferenceActivity
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        if (Utils.isMonkeyRunning()) {
            finish();
            return;
        }

        addPreferencesFromResource(R.xml.sim_lock_settings);

        mPinDialog = (EditPinPreference) findPreference(PIN_DIALOG);