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.
This commit is contained in:
Amith Yamasani
2010-01-07 19:05:07 -08:00
parent 04e32ff35f
commit 20043f40fc

View File

@@ -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);