Pass the APPLICATION_PARAMETERS variable if defined.
Change-Id: I2a3c049db43bbd0a2c373dae9e9ac1395c099b74 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
This commit is contained in:
parent
5ab630f8be
commit
1f695a31e2
@ -634,11 +634,15 @@ public class QtActivity extends Activity
|
|||||||
+ "\tQML_IMPORT_PATH=" + pluginsPrefix + "/imports"
|
+ "\tQML_IMPORT_PATH=" + pluginsPrefix + "/imports"
|
||||||
+ "\tQT_PLUGIN_PATH=" + pluginsPrefix + "/plugins");
|
+ "\tQT_PLUGIN_PATH=" + pluginsPrefix + "/plugins");
|
||||||
|
|
||||||
Intent intent = getIntent();
|
if (APPLICATION_PARAMETERS != null) {
|
||||||
if (intent != null) {
|
loaderParams.putString(APPLICATION_PARAMETERS_KEY, APPLICATION_PARAMETERS);
|
||||||
String parameters = intent.getStringExtra("applicationArguments");
|
} else {
|
||||||
if (parameters != null)
|
Intent intent = getIntent();
|
||||||
loaderParams.putString(APPLICATION_PARAMETERS_KEY, parameters.replace(' ', '\t'));
|
if (intent != null) {
|
||||||
|
String parameters = intent.getStringExtra("applicationArguments");
|
||||||
|
if (parameters != null)
|
||||||
|
loaderParams.putString(APPLICATION_PARAMETERS_KEY, parameters.replace(' ', '\t'));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
loadApplication(loaderParams);
|
loadApplication(loaderParams);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user