get player url from shared preference
Project: http://git-wip-us.apache.org/repos/asf/incubator-taverna-mobile/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-taverna-mobile/commit/2d8a1eeb Tree: http://git-wip-us.apache.org/repos/asf/incubator-taverna-mobile/tree/2d8a1eeb Diff: http://git-wip-us.apache.org/repos/asf/incubator-taverna-mobile/diff/2d8a1eeb Branch: refs/heads/master Commit: 2d8a1eeb18277c17f896387d7dacdbe9da17828e Parents: 03ab156 Author: Sagar <kumarsagar15...@gmail.com> Authored: Tue Sep 27 15:09:26 2016 +0530 Committer: Sagar <kumarsagar15...@gmail.com> Committed: Tue Sep 27 15:09:26 2016 +0530 ---------------------------------------------------------------------- .../taverna/mobile/ui/workflowrun/WorkflowRunActivity.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-taverna-mobile/blob/2d8a1eeb/app/src/main/java/org/apache/taverna/mobile/ui/workflowrun/WorkflowRunActivity.java ---------------------------------------------------------------------- diff --git a/app/src/main/java/org/apache/taverna/mobile/ui/workflowrun/WorkflowRunActivity.java b/app/src/main/java/org/apache/taverna/mobile/ui/workflowrun/WorkflowRunActivity.java index bfb6138..3022449 100644 --- a/app/src/main/java/org/apache/taverna/mobile/ui/workflowrun/WorkflowRunActivity.java +++ b/app/src/main/java/org/apache/taverna/mobile/ui/workflowrun/WorkflowRunActivity.java @@ -127,8 +127,13 @@ public class WorkflowRunActivity extends FragmentActivity implements WorkflowRun @Override public void setInputsAttribute(int id) { + String playerURL=dataManager.getPreferencesHelper().getPlayerURL(); - workflowRunURL = "http://139.59.28.12:3000/workflows/" + id + "/runs/new"; + if (playerURL.trim().endsWith("/")){ + playerURL=playerURL.substring(0,playerURL.length()-1); + } + workflowRunURL = playerURL+"/workflows/" + id + + "/runs/new"; mPager.getAdapter().notifyDataSetChanged(); }