diff --git a/src/com/android/settings/applications/DefaultEmergencyPreference.java b/src/com/android/settings/applications/DefaultEmergencyPreference.java index bb6e84d62ef..1d04f04f1ba 100644 --- a/src/com/android/settings/applications/DefaultEmergencyPreference.java +++ b/src/com/android/settings/applications/DefaultEmergencyPreference.java @@ -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; } }