Merge "Restrict ICE to system image only in settings." into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
c4b8c70e8a
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user