Don't allow monkey to play with SIM lock settings. Bug # 2358489
If the monkey is running, exit the SIM lock settings activity.
This commit is contained in:
@@ -119,6 +119,11 @@ public class IccLockSettings extends PreferenceActivity
|
|||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
|
||||||
|
if (Utils.isMonkeyRunning()) {
|
||||||
|
finish();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
addPreferencesFromResource(R.xml.sim_lock_settings);
|
addPreferencesFromResource(R.xml.sim_lock_settings);
|
||||||
|
|
||||||
mPinDialog = (EditPinPreference) findPreference(PIN_DIALOG);
|
mPinDialog = (EditPinPreference) findPreference(PIN_DIALOG);
|
||||||
|
Reference in New Issue
Block a user