Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EE88211D95 for ; Wed, 23 Apr 2014 17:10:08 +0000 (UTC) Received: (qmail 71974 invoked by uid 500); 23 Apr 2014 17:10:08 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 71938 invoked by uid 500); 23 Apr 2014 17:10:08 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 71930 invoked by uid 99); 23 Apr 2014 17:10:07 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Apr 2014 17:10:07 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id BA60C948E6B; Wed, 23 Apr 2014 17:10:07 +0000 (UTC) From: mmocny To: dev@cordova.apache.org Reply-To: dev@cordova.apache.org References: In-Reply-To: Subject: [GitHub] cordova-cli pull request: android-parser: Add launch-mode preferen... Content-Type: text/plain Message-Id: <20140423171007.BA60C948E6B@tyr.zones.apache.org> Date: Wed, 23 Apr 2014 17:10:07 +0000 (UTC) Github user mmocny commented on a diff in the pull request: https://github.com/apache/cordova-cli/pull/164#discussion_r11911345 --- Diff: src/metadata/android_parser.js --- @@ -97,6 +108,29 @@ module.exports.prototype = { } } + // Set launchMode in AndroidManifest + var launchModePref = this.findLaunchModePreference(config); + if (launchModePref) { + var act = manifest.getroot().find('./application/activity'); + switch (launchModePref) { --- End diff -- Why this switch statement? Couldn't you just `if (launchModePref) act.attrib["android:launchMode"] = launchModePref;` ? --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---