am 5281b823: Merge change 9208 into donut
Merge commit '5281b823a046b6eb40f12aeb805462f7d58fdebe' * commit '5281b823a046b6eb40f12aeb805462f7d58fdebe': Support packages with no license.
This commit is contained in:
committed by
Android Git Automerger
commit
60842f0275
@@ -293,8 +293,14 @@ final class UpdateChooserDialog extends Dialog {
|
||||
|
||||
// Automatically accept those with an empty license
|
||||
for (Archive a : mNewToOldArchiveMap.keySet()) {
|
||||
String license = a.getParentPackage().getLicense().trim();
|
||||
if (license.length() == 0) {
|
||||
|
||||
String license = a.getParentPackage().getLicense();
|
||||
if (license != null) {
|
||||
license = license.trim();
|
||||
if (license.length() == 0) {
|
||||
mAccepted.add(a);
|
||||
}
|
||||
} else {
|
||||
mAccepted.add(a);
|
||||
}
|
||||
}
|
||||
@@ -453,8 +459,11 @@ final class UpdateChooserDialog extends Dialog {
|
||||
sb.append("\n*** Archive Description:\n");
|
||||
sb.append(a.getLongDescription()).append("\n");
|
||||
|
||||
sb.append("\n*** Package License:\n");
|
||||
sb.append(a.getParentPackage().getLicense()).append("\n");
|
||||
String license = a.getParentPackage().getLicense();
|
||||
if (license != null) {
|
||||
sb.append("\n*** Package License:\n");
|
||||
sb.append(license).append("\n");
|
||||
}
|
||||
|
||||
mPackageText.setText(sb.toString());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user