Skip to content

Commit b5ecbf6

Browse files
author
Daniil Efremov
authored
Merge pull request #53 from dividiti/issue-fixes
Issue fixes
2 parents 68514b5 + 710680b commit b5ecbf6

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

app/src/main/java/openscience/crowdsource/video/experiments/ResultActivity.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,16 @@ public void onClick(View v) {
8181
}
8282

8383
final TextView crowdResultURL = (TextView) findViewById(R.id.crowdResultURL);
84-
crowdResultURL.setText(Html.fromHtml("<a href=\"" + AppConfigService.getResultURL() + "\">View your results in the public repository</a>"));
84+
crowdResultURL.setText(Html.fromHtml("<a href=\"" + AppConfigService.getResultURL() + "\">View your results in the public repository</a>"));
8585
crowdResultURL.setOnClickListener(new View.OnClickListener() {
8686
@SuppressWarnings({"unused", "unchecked"})
8787
@Override
8888
public void onClick(View arg0) {
89-
AppLogger.logMessage("Opening " + URL_CROWD_RESULTS + " ...");
89+
String resultURL = AppConfigService.getResultURL();
90+
AppLogger.logMessage("Opening " + resultURL + " ...");
9091

9192
Intent browserIntent =
92-
new Intent(Intent.ACTION_VIEW, Uri.parse(URL_CROWD_RESULTS));
93+
new Intent(Intent.ACTION_VIEW, Uri.parse(resultURL));
9394

9495
startActivity(browserIntent);
9596
}

app/src/main/res/layout/activity_info.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<ScrollView
1111
android:layout_width="fill_parent"
1212
android:layout_height="wrap_content"
13-
android:layout_marginTop="0dp">
13+
android:layout_marginTop="30dp">
1414
<LinearLayout
1515
android:layout_width="fill_parent"
1616
android:layout_height="wrap_content"
@@ -25,7 +25,7 @@
2525
android:gravity="center_vertical"
2626
android:layout_width="match_parent"
2727
android:layout_height="56dp"
28-
android:layout_marginTop="25dp"
28+
android:layout_marginTop="10dp"
2929
android:layout_marginLeft="30dp"
3030

3131
android:layout_alignParentTop="true"

0 commit comments

Comments
 (0)