A new class has been added in the util package: NewPipeTextViewHelper.
It shares the selected text of a TextView with ShareUtils#shareText (with the created shareSelectedTextWithShareUtils static method).
Only this static method can be used by other classes, other methods are private.
This EditText class extends the AppCompatEditText class from androidx.
These changes (only in XML ressources) allow us to share the selected text by using ShareUtils.shareText, which opens the Android system chooser instead of the Huawei system chooser on EMUI devices.
This TextView class extends the AppCompatTextView class from androidx.
These changes (only in XML ressources) allow us to share the selected text by using ShareUtils.shareText, which opens the Android system chooser instead of the Huawei system chooser on EMUI devices.
When the service is started from the Application class, the app might be still in the background. This is definetly not the case when MainActivity.onCreate() is called.
Fixes#7227
Currently translated at 98.8% (614 of 621 strings)
Translated using Weblate (Persian)
Currently translated at 17.2% (10 of 58 strings)
Translated using Weblate (Spanish)
Currently translated at 100.0% (621 of 621 strings)
Translated using Weblate (Russian)
Currently translated at 100.0% (621 of 621 strings)
Translated using Weblate (Ukrainian)
Currently translated at 79.3% (46 of 58 strings)
Translated using Weblate (Russian)
Currently translated at 100.0% (621 of 621 strings)
Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (58 of 58 strings)
Translated using Weblate (Polish)
Currently translated at 53.4% (31 of 58 strings)
Translated using Weblate (Hebrew)
Currently translated at 48.2% (28 of 58 strings)
Translated using Weblate (Romanian)
Currently translated at 100.0% (621 of 621 strings)
Co-authored-by: Agnieszka C <aga_04@o2.pl>
Co-authored-by: Danial Behzadi <dani.behzi@ubuntu.com>
Co-authored-by: Edward <edwardchirita@mailbox.org>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Igor Nedoboy <i.nedoboy@mail.ru>
Co-authored-by: Ihor Hordiichuk <igor_ck@outlook.com>
Co-authored-by: MS-PC <MSPCtranslator@gmail.com>
Co-authored-by: Yaron Shahrabani <sh.yaron@gmail.com>
Co-authored-by: chr56 <chr0056@gmail.com>
Co-authored-by: zmni <zmni@outlook.com>
Translate-URL: https://hosted.weblate.org/projects/newpipe/metadata/fa/
Translate-URL: https://hosted.weblate.org/projects/newpipe/metadata/he/
Translate-URL: https://hosted.weblate.org/projects/newpipe/metadata/pl/
Translate-URL: https://hosted.weblate.org/projects/newpipe/metadata/uk/
Translate-URL: https://hosted.weblate.org/projects/newpipe/metadata/zh_Hans/
Translation: NewPipe/Metadata