Commit 996858c3 authored by Nicolas Pomepuy's avatar Nicolas Pomepuy

Add a feedback link in the About screen

parent f7709c6b
Pipeline #6557 failed with stage
in 34 seconds
......@@ -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"
......
......@@ -256,11 +256,14 @@
<string name="revision">Revision</string>
<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</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="feedback_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="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="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, Nicolas&#160;Pomepuy, Habib&#160;Kazemi</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>
......
......@@ -32,7 +32,6 @@ import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.content.res.TypedArray;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
......@@ -49,7 +48,7 @@ import android.renderscript.RenderScript;
import android.renderscript.ScriptIntrinsicBlur;
import android.text.Html;
import android.text.TextUtils;
import android.util.DisplayMetrics;
import android.text.method.LinkMovementMethod;
import android.view.Display;
import android.view.DragAndDropPermissions;
import android.view.DragEvent;
......@@ -66,6 +65,15 @@ import android.view.inputmethod.InputMethodManager;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.RequiresApi;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.content.ContextCompat;
import androidx.databinding.BindingAdapter;
import androidx.fragment.app.FragmentActivity;
import com.google.android.material.snackbar.Snackbar;
import org.videolan.libvlc.util.AndroidUtil;
......@@ -85,22 +93,11 @@ import org.videolan.vlc.util.LocalePair;
import org.videolan.vlc.util.Settings;
import org.videolan.vlc.viewmodels.SortableModel;
import java.util.HashSet;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
import java.util.TreeMap;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.RequiresApi;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.content.ContextCompat;
import androidx.databinding.BindingAdapter;
import androidx.fragment.app.FragmentActivity;
public class UiTools {
private static final String TAG = "VLC/UiTools";
private static BitmapDrawable DEFAULT_COVER_VIDEO_DRAWABLE;
......@@ -287,6 +284,10 @@ public class UiTools {
final TextView link = v.findViewById(R.id.main_link);
link.setText(Html.fromHtml(v.getContext().getString(R.string.about_link)));
final TextView feedback = v.findViewById(R.id.feedback);
feedback.setText(Html.fromHtml(v.getContext().getString(R.string.feedback_link, v.getContext().getString(R.string.feedback_forum))));
feedback.setMovementMethod(LinkMovementMethod.getInstance());
final String revision = v.getContext().getString(R.string.build_revision) + " VLC: " + v.getContext().getString(R.string.build_vlc_revision);
final String builddate = v.getContext().getString(R.string.build_time);
final String builder = v.getContext().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