Merge "Fix wrap property creation when truncating." into lmp-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
fd41feee6b
@@ -842,7 +842,12 @@ class ZygoteConnection {
|
||||
if (args.niceName != null) {
|
||||
String property = "wrap." + args.niceName;
|
||||
if (property.length() > 31) {
|
||||
property = property.substring(0, 31);
|
||||
// Avoid creating an illegal property name when truncating.
|
||||
if (property.charAt(30) != '.') {
|
||||
property = property.substring(0, 31);
|
||||
} else {
|
||||
property = property.substring(0, 30);
|
||||
}
|
||||
}
|
||||
args.invokeWith = SystemProperties.get(property);
|
||||
if (args.invokeWith != null && args.invokeWith.length() == 0) {
|
||||
|
||||
Reference in New Issue
Block a user