Suspend action in security patch when browser is disabled am: 013da34209
am: 221b9157b4
am: ac49ccedb7
Change-Id: Ib4458b25bb12a928a9a258b2430877ca75a18f78
This commit is contained in:
@@ -265,6 +265,13 @@ public class DeviceInfoSettings extends SettingsPreferenceFragment implements In
|
||||
Toast.LENGTH_LONG);
|
||||
mDevHitToast.show();
|
||||
}
|
||||
} else if (preference.getKey().equals(KEY_SECURITY_PATCH)) {
|
||||
if (getPackageManager().queryIntentActivities(preference.getIntent(), 0).isEmpty()) {
|
||||
// Don't send out the intent to stop crash
|
||||
Log.w(LOG_TAG, "Stop click action on " + KEY_SECURITY_PATCH + ": "
|
||||
+ "queryIntentActivities() returns empty" );
|
||||
return true;
|
||||
}
|
||||
} else if (preference.getKey().equals(KEY_DEVICE_FEEDBACK)) {
|
||||
sendFeedback();
|
||||
}
|
||||
|
Reference in New Issue
Block a user