Merge "Restrict ICE to system image only in settings." into nyc-dev am: c4b8c70e8a

am: d1590a9424

* commit 'd1590a94244f36133a64d2ec4e9341d4dbe7eeed':
  Restrict ICE to system image only in settings.
This commit is contained in:
Akshay Kannan
2016-02-24 18:42:01 +00:00
committed by android-build-merger

View File

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