Commit 10890353 authored by Nicolas Pomepuy's avatar Nicolas Pomepuy Committed by Geoffrey Métais

Add a feedback link in the About screen

parent 13cb27a7
......@@ -83,6 +83,16 @@
android:text="@string/about_link"
android:textSize="14sp" />
<TextView
android:id="@+id/feedback"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:layout_weight="0.27"
android:gravity="center"
android:text="@string/feedback_link"
android:textSize="14sp" />
<TextView
android:id="@+id/main_revision"
android:layout_width="fill_parent"
......
......@@ -257,10 +257,12 @@
<string name="about">About</string>
<string name="about_text">VLC for Android™ is a port of VLC media player, the popular open source media player. The Android™ version can read most files and network streams.</string>
<string name="about_link" translatable="false"> &lt;a href=&quot;https://www.videolan.org/vlc/&quot;&gt;https://www.videolan.org/vlc/&lt;/a&gt;</string>
<string name="about_copyright" translatable="false">Copyleft &#169; 1996&#8211;2018 by VideoLAN.\n</string>
<string name="authors" translatable="false">Edward&#160;Wang, Sébastien&#160;Toque, Adrien&#160;Maglo, Jean-Baptiste&#160;Kempf, Ludovic&#160;Fauvet, Rafaël&#160;Carré, Alexandre&#160;Perraud, Michael&#160;Merg, Martin&#160;Storsjö, Rémi&#160;Duraffort, Dominique&#160;Martinet, Jean-Philippe&#160;André, Felix&#160;Abecassis, Christoph&#160;Miebach, Hugo&#160;Beauzée-Luyssen, Felix&#160;Paul&#160;Kühne, John&#160;Mooring, Pavol&#160;Rusnak, Rohit&#160;Yadav, Tanguy&#160;Pruvot, Thomas&#160;Clavier, Asad&#160;Mehmood, Garret&#160;Kelly, Philipp&#160;Dreimann, Walter&#160;Heck, Thomas&#160;Guillem, Geoffrey&#160;Métais, Habib&#160;Kazemi, Nicolas&#160;Pomepuy</string>
<string name="feedback_link" translatable="false">&lt;a href=&quot;https://forum.videolan.org/viewforum.php?f=35&quot;&gt;%s&lt;/a&gt;</string>
<string name="about_copyright" translatable="false">Copyleft &#169; 1996&#8211;2019 by VideoLAN.\n</string>
<string name="vlc_authors">and VLC Authors.</string>
<string name="compiled_by">This version of VLC is compiled by:</string>
<string name="feedback_forum">Feedback forum</string>
<!-- Preferences -->
<string name="preferences">Settings</string>
......
......@@ -41,6 +41,7 @@ import android.os.Looper
import android.renderscript.*
import android.text.Html
import android.text.TextUtils
import android.text.method.LinkMovementMethod
import android.view.*
import android.view.animation.Animation
import android.view.animation.AnimationSet
......@@ -205,6 +206,10 @@ object UiTools {
val link = v.findViewById<TextView>(R.id.main_link)
link.text = Html.fromHtml(v.context.getString(R.string.about_link))
val feedback : TextView= v.findViewById(R.id.feedback)
feedback.text = Html.fromHtml(v.getContext().getString(R.string.feedback_link, v.getContext().getString(R.string.feedback_forum)));
feedback.movementMethod = LinkMovementMethod.getInstance();
val revision = v.context.getString(R.string.build_revision) + " VLC: " + v.context.getString(R.string.build_vlc_revision)
val builddate = v.context.getString(R.string.build_time)
val builder = v.context.getString(R.string.build_host)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment