Restrict ICE to system image only in settings.
Bug: 23591361 Change-Id: I56767e94eb5f30bc175a097bb8cae340cb9dfb3a
This commit is contained in:
@@ -111,11 +111,9 @@ public class DefaultEmergencyPreference extends AppListPreference {
|
||||
continue;
|
||||
}
|
||||
|
||||
// Get earliest installed app, but prioritize system apps.
|
||||
if (bestMatch == null
|
||||
|| !isSystemApp(bestMatch) && isSystemApp(packageInfo)
|
||||
|| isSystemApp(bestMatch) == isSystemApp(packageInfo)
|
||||
&& bestMatch.firstInstallTime > packageInfo.firstInstallTime) {
|
||||
// Get earliest installed system app.
|
||||
if (isSystemApp(packageInfo) && (bestMatch == null ||
|
||||
bestMatch.firstInstallTime > packageInfo.firstInstallTime)) {
|
||||
bestMatch = packageInfo;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user