First pass at reworking screen density/size APIs.
This changes the names of the directories in aapt, to what you see in the list of DpiTest resources. Also adds a new "long" configuration for wide screens, which the platform sets appropriate, and introduces a new kind of resizeability for not large but significantly larger than normal screens which may have compatibility issues.
This commit is contained in:
@ -4916,6 +4916,10 @@ class PackageManagerService extends IPackageManager.Stub {
|
||||
ApplicationInfo.FLAG_SUPPORTS_SMALL_SCREENS) != 0) {
|
||||
screens.add("small,");
|
||||
}
|
||||
if ((ps.pkg.applicationInfo.flags &
|
||||
ApplicationInfo.FLAG_RESIZEABLE_FOR_SCREENS) != 0) {
|
||||
screens.add("resizeable,");
|
||||
}
|
||||
pw.print(" supportsScreens="); pw.println(screens);
|
||||
}
|
||||
pw.print(" timeStamp="); pw.println(ps.getTimeStampStr());
|
||||
|
Reference in New Issue
Block a user