Restrict ICE to system image only in settings.

Bug: 23591361
Change-Id: I56767e94eb5f30bc175a097bb8cae340cb9dfb3a
This commit is contained in:
Akshay Kannan
2016-02-24 10:07:27 -08:00
parent bad66071cc
commit 5cddcf2408

View File

@@ -111,11 +111,9 @@ public class DefaultEmergencyPreference extends AppListPreference {
continue; continue;
} }
// Get earliest installed app, but prioritize system apps. // Get earliest installed system app.
if (bestMatch == null if (isSystemApp(packageInfo) && (bestMatch == null ||
|| !isSystemApp(bestMatch) && isSystemApp(packageInfo) bestMatch.firstInstallTime > packageInfo.firstInstallTime)) {
|| isSystemApp(bestMatch) == isSystemApp(packageInfo)
&& bestMatch.firstInstallTime > packageInfo.firstInstallTime) {
bestMatch = packageInfo; bestMatch = packageInfo;
} }
} }