Always start new applications on the freeform stack

This commit is contained in:
Simon Fels 2016-11-29 06:18:01 +01:00
commit e75940711b
4 changed files with 10 additions and 9 deletions

View file

@ -83,12 +83,16 @@ void AndroidApiSkeleton::launch_application(anbox::protobuf::bridge::LaunchAppli
(void) response;
std::string intent = request->package_name();
intent += "/";
intent += request->activity();
if (request->has_activity()) {
intent += "/";
intent += request->activity();
}
std::vector<std::string> argv = {
"/system/bin/am",
"start",
// Launch any applications always in freeform stack
"--stack", "2",
intent,
};