Browse Source

add image for downloading nightly
fix url

tobiasKaminsky 8 years ago
parent
commit
2cbdddffc3

BIN
res/drawable-xxxhdpi/apk.png


+ 4 - 5
src/main/java/com/owncloud/android/ui/activity/ParticipateActivity.java

@@ -59,11 +59,6 @@ public class ParticipateActivity extends FileActivity {
 
     private void setupContent() {
         TextView betaView = (TextView) findViewById(R.id.participate_beta_text);
-        betaView.setMovementMethod(LinkMovementMethod.getInstance());
-        betaView.setText(Html.fromHtml(getString(R.string.participate_beta_text,
-                getString(R.string.fdroid_beta_link),
-                getString(R.string.beta_apk_link))));
-
 
         TextView rcView = (TextView) findViewById(R.id.participate_release_candidate_text);
         rcView.setMovementMethod(LinkMovementMethod.getInstance());
@@ -113,6 +108,10 @@ public class ParticipateActivity extends FileActivity {
         startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(getString(R.string.play_store_register_beta))));
     }
 
+    public void onGetBetaApkClick(View view) {
+        startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(getString(R.string.beta_apk_link))));
+    }
+
     @Override
     public boolean onOptionsItemSelected(MenuItem item) {
         boolean retval;

+ 15 - 0
src/main/res/layout/participate_layout.xml

@@ -128,6 +128,10 @@
                     android:text="@string/participate_beta_text"
                     android:textAppearance="?android:attr/textAppearanceMedium"/>
 
+            <LinearLayout
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content">
+
                 <ImageButton
                     android:id="@+id/participate_beta_fdroid"
                     android:layout_width="wrap_content"
@@ -137,6 +141,17 @@
                     android:padding="@dimen/zero"
                     android:src="@drawable/fdroid"/>
 
+                <ImageButton
+                    android:id="@+id/participate_beta_apk"
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:background="@color/white"
+                    android:onClick="onGetBetaApkClick"
+                    android:padding="@dimen/zero"
+                    android:src="@drawable/apk"/>
+
+                </LinearLayout>
+
                 <TextView
                     android:id="@+id/participate_contribute_headline"
                     android:layout_width="wrap_content"

+ 1 - 1
src/main/res/values/setup.xml

@@ -91,7 +91,7 @@
 
     <!-- Participate links -->
     <string name="fdroid_beta_link" translatable="false">https://f-droid.org/repository/browse/?fdid=com.nextcloud.android.beta</string>
-    <string name="beta_apk_link" translatable="false">https://github.com/nextcloud/android/raw/beta/apks/latest.apk</string>
+    <string name="beta_apk_link" translatable="false">https://download.nextcloud.com/android/nightly/latest.apk</string>
     <string name="play_store_register_beta" translatable="false">https://play.google.com/apps/testing/com.nextcloud.client</string>
     <string name="fdroid_link" translatable="false">https://f-droid.org/repository/browse/?fdid=com.nextcloud.client</string>
     <string name="irc_weblink" translatable="false">http://webchat.freenode.net?channels=nextcloud-mobile</string>

+ 2 - 2
src/main/res/values/strings.xml

@@ -512,8 +512,8 @@
     <string name="participate_testing_bug_text">Found a bug? Something is odd?</string>
     <string name="participate_testing_report_text">Report an issue on Github</string>
     <string name="participate_testing_version_text">Interested in helping us testing the next Version?</string>
-    <string name="participate_beta_headline">Test the Beta version</string>
-    <string name="participate_beta_text">This includes all upcoming features and is very bleeding edge. Bugs/errors can occur and if they do, please report them to us. &lt;br/>&lt;a href="%2$s">Download the APK&lt;/a> or</string>
+    <string name="participate_beta_headline">Test the nightly version</string>
+    <string name="participate_beta_text">This includes all upcoming features and is very bleeding edge. Bugs/errors can occur and if they do, please report them to us.</string>
     <string name="participate_release_candidate_headline">Release candidate</string>
     <string name="participate_release_candidate_text">The release candidate (RC) is a snapshot of the upcoming release and it is expected to be stable. Testing your individual setup could help to ensure this. Sign up for testing on the Play store or manually look in the \"versions\" section on F-Droid.</string>
     <string name="participate_contribute_headline">Actively Contribute</string>