Merge "Applies INSTALL_REPLACE_EXISTING outside of while loop" into qt-dev

This commit is contained in:
TreeHugger Robot
2019-05-29 21:47:42 +00:00
committed by Android (Google) Code Review

View File

@@ -2496,10 +2496,10 @@ class PackageManagerShellCommand extends ShellCommand {
default: default:
throw new IllegalArgumentException("Unknown option " + opt); throw new IllegalArgumentException("Unknown option " + opt);
} }
}
if (replaceExisting) { if (replaceExisting) {
sessionParams.installFlags |= PackageManager.INSTALL_REPLACE_EXISTING; sessionParams.installFlags |= PackageManager.INSTALL_REPLACE_EXISTING;
} }
}
return params; return params;
} }