External sharing improvements

Improve NewPipe's share on some devices + fix crash when no browser is set on some devices

Catching ActivityNotFoundException when trying to open the default browser
Use an ACTION_CHOOSER intent and put as an extra intent the intent to
open an URI / share an URI when no default app is set.

Add a LinkHelper class which set a custom action when clicking web links
in the description of a content. This class also helps to implement a confirmation dialog when trying to open web links in an external app.
This commit is contained in:
TiA4f8R 2020-12-15 20:11:55 +01:00 committed by Stypox
parent b73eb9438d
commit a57fd69fb4
No known key found for this signature in database
GPG key ID: 4BDF1B40A49FDD23
13 changed files with 285 additions and 111 deletions

View file

@ -651,4 +651,5 @@
<string name="notification_colorize_summary">Demander à Android de personnaliser la couleur de la notification en fonction de la couleur principale de la miniature (noter que cela nest pas disponible sur tous les appareils)</string>
<string name="show_thumbnail_title">Afficher la miniature</string>
<string name="show_thumbnail_summary">Utiliser la miniature pour l\'arrière-plan de lécran de verrouillage et les notifications</string>
<string name="open_with">Ouvrir avec</string>
</resources>