We provide visual feedback via a toast to the user that, well, they're supposed to wait; but with the benefit of the cache openAddToPlaylistDialog() may return (almost) immediately, which would render the toast otiose (if not a bit confusing). This commit improves that by cancelling the toast once the wait's over
... (by 'abusing' RxJava's ambWith();
ref on compose() and Transformer: https://blog.danlew.net/2015/03/02/dont-break-the-chain/
and for me, first time laying my hands at RxJava so kindly bear with me; open for suggestions)
pending result for openAddToPlaylistDialog() and openDownloadDialog()
Despite marked deprecated, setRetainInstance(true) is probably our best bet (since a ViewModel is probably too overkill for our present purpose)
so we won't hold up UI while fetching media info for Add to Playlist or Download actions
lest user might think it freezes when in fact a network request is underway
- Handle finish() call instead of passing around callbacks to setOnDismissListener()
- Don't start over again if returning to DialogFragment before orientation change
This seems to solve a bug where the Open action menu dialog does not appear the first time on cold start on older Android (8.0).
This is also the order of things in MainActivity and probably good practice.
Currently translated at 93.0% (67 of 72 strings)
Translated using Weblate (Ukrainian)
Currently translated at 100.0% (72 of 72 strings)
Translated using Weblate (Ukrainian)
Currently translated at 100.0% (648 of 648 strings)
Translated using Weblate (French)
Currently translated at 91.6% (66 of 72 strings)
Translated using Weblate (Urdu)
Currently translated at 66.9% (434 of 648 strings)
Translated using Weblate (Hungarian)
Currently translated at 100.0% (648 of 648 strings)
Translated using Weblate (Portuguese (Portugal))
Currently translated at 100.0% (648 of 648 strings)
Translated using Weblate (Punjabi)
Currently translated at 100.0% (648 of 648 strings)
Translated using Weblate (Azerbaijani)
Currently translated at 100.0% (648 of 648 strings)
Translated using Weblate (Hindi)
Currently translated at 100.0% (648 of 648 strings)
Translated using Weblate (Romanian)
Currently translated at 100.0% (648 of 648 strings)
Translated using Weblate (Italian)
Currently translated at 100.0% (72 of 72 strings)
Translated using Weblate (Telugu)
Currently translated at 6.9% (5 of 72 strings)
Translated using Weblate (Telugu)
Currently translated at 66.9% (434 of 648 strings)
Translated using Weblate (Russian)
Currently translated at 100.0% (648 of 648 strings)
Translated using Weblate (Dutch)
Currently translated at 100.0% (648 of 648 strings)
Translated using Weblate (Tamil)
Currently translated at 54.0% (350 of 648 strings)
Translated using Weblate (Chinese (Traditional, Hong Kong))
Currently translated at 100.0% (648 of 648 strings)
Co-authored-by: Ahmad Raza <ahmadrazaxm@gmail.com>
Co-authored-by: Dan <denqwerta@gmail.com>
Co-authored-by: Florian <flo.site@zaclys.net>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Igor Nedoboy <i.nedoboy@mail.ru>
Co-authored-by: Igor Sorocean <sorocean.igor@gmail.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
Co-authored-by: Kiss Attila <gaxeco4855@pro5g.com>
Co-authored-by: Nidi <nizamismidov4@gmail.com>
Co-authored-by: Ray <ray.cfu@protonmail.com>
Co-authored-by: ShareASmile <aapshergill@gmail.com>
Co-authored-by: Terry Louwers <t.louwers@gmail.com>
Co-authored-by: Translator <kvb@tuta.io>
Co-authored-by: pjammo <adrianoghr@hotmail.it>
Co-authored-by: ssantos <ssantos@web.de>
Co-authored-by: subba raidu <raidu4u@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/newpipe/metadata/fr/
Translate-URL: https://hosted.weblate.org/projects/newpipe/metadata/it/
Translate-URL: https://hosted.weblate.org/projects/newpipe/metadata/te/
Translate-URL: https://hosted.weblate.org/projects/newpipe/metadata/uk/
Translation: NewPipe/Metadata
Some services may only have video streams and no separate audio streams available.
This commit will add audio background playback support for those services.
It uses the video source as audio source for background playback.
Currently translated at 100.0% (72 of 72 strings)
Translated using Weblate (Persian)
Currently translated at 100.0% (648 of 648 strings)
Translated using Weblate (Esperanto)
Currently translated at 74.3% (482 of 648 strings)
Translated using Weblate (German)
Currently translated at 100.0% (648 of 648 strings)
Translated using Weblate (Punjabi)
Currently translated at 100.0% (648 of 648 strings)
Translated using Weblate (Azerbaijani)
Currently translated at 100.0% (648 of 648 strings)
Translated using Weblate (Hindi)
Currently translated at 100.0% (648 of 648 strings)
Translated using Weblate (Lithuanian)
Currently translated at 100.0% (648 of 648 strings)
Translated using Weblate (Swedish)
Currently translated at 100.0% (648 of 648 strings)
Translated using Weblate (Russian)
Currently translated at 100.0% (648 of 648 strings)
Translated using Weblate (French)
Currently translated at 100.0% (648 of 648 strings)
Translated using Weblate (German)
Currently translated at 100.0% (648 of 648 strings)
Translated using Weblate (German)
Currently translated at 100.0% (648 of 648 strings)
Translated using Weblate (Odia)
Currently translated at 100.0% (648 of 648 strings)
Translated using Weblate (Galician)
Currently translated at 100.0% (648 of 648 strings)
Translated using Weblate (Estonian)
Currently translated at 100.0% (648 of 648 strings)
Translated using Weblate (Portuguese)
Currently translated at 100.0% (648 of 648 strings)
Translated using Weblate (Spanish)
Currently translated at 100.0% (648 of 648 strings)
Translated using Weblate (Punjabi)
Currently translated at 100.0% (648 of 648 strings)
Translated using Weblate (Hindi)
Currently translated at 100.0% (648 of 648 strings)
Translated using Weblate (Hebrew)
Currently translated at 100.0% (648 of 648 strings)
Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (648 of 648 strings)
Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (648 of 648 strings)
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (648 of 648 strings)
Translated using Weblate (Polish)
Currently translated at 100.0% (648 of 648 strings)
Translated using Weblate (Turkish)
Currently translated at 100.0% (648 of 648 strings)
Translated using Weblate (Ukrainian)
Currently translated at 100.0% (648 of 648 strings)
Translated using Weblate (Indonesian)
Currently translated at 100.0% (648 of 648 strings)
Translated using Weblate (Arabic)
Currently translated at 100.0% (648 of 648 strings)
Translated using Weblate (Czech)
Currently translated at 100.0% (648 of 648 strings)
Translated using Weblate (Italian)
Currently translated at 100.0% (648 of 648 strings)
Translated using Weblate (German)
Currently translated at 99.8% (647 of 648 strings)
Translated using Weblate (Greek)
Currently translated at 100.0% (648 of 648 strings)
Translated using Weblate (Greek)
Currently translated at 100.0% (648 of 648 strings)
Translated using Weblate (Greek)
Currently translated at 99.6% (646 of 648 strings)
Co-authored-by: Agnieszka C <aga_04@o2.pl>
Co-authored-by: BMN <weblate@yopmail.com>
Co-authored-by: C. Rüdinger <Mail-an-CR@web.de>
Co-authored-by: Danial Behzadi <dani.behzi@ubuntu.com>
Co-authored-by: Eric <hamburger1024@duck.com>
Co-authored-by: Fjuro <ifjuro@proton.me>
Co-authored-by: Florian <flo.site@zaclys.net>
Co-authored-by: GET100PERCENT <eraofphysics@yahoo.com>
Co-authored-by: Gediminas Murauskas <muziejusinfo@gmail.com>
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: Jeff Huang <s8321414@gmail.com>
Co-authored-by: Linerly <linerly@protonmail.com>
Co-authored-by: Nidi <nizamismidov4@gmail.com>
Co-authored-by: Oğuz Ersen <oguz@ersen.moe>
Co-authored-by: Priit Jõerüüt <hwlate@joeruut.com>
Co-authored-by: Retrial <giwrgosmant@gmail.com>
Co-authored-by: Rex_sa <rex.sa@pm.me>
Co-authored-by: Ricardo <contatorms7@tutamail.com>
Co-authored-by: SC <lalocas@protonmail.com>
Co-authored-by: ShareASmile <aapshergill@gmail.com>
Co-authored-by: Skarvinius <saab_samuel@hotmail.com>
Co-authored-by: Vasilis K <skyhirules@gmail.com>
Co-authored-by: Yaron Shahrabani <sh.yaron@gmail.com>
Co-authored-by: argonfilm <gradicchuck@gmail.com>
Co-authored-by: gallegonovato <fran-carro@hotmail.es>
Co-authored-by: nautilusx <translate@disroot.org>
Co-authored-by: pjammo <adrianoghr@hotmail.it>
Translate-URL: https://hosted.weblate.org/projects/newpipe/metadata/es/
Translation: NewPipe/Metadata
Add a check that the queue position is not the last in the queue before
showing "Enqueue next".
Previously the "Enqueue next" action would always be shown if the queue
length was greater than one, this meant even if you were at the end of
the queue (when "Enqueue" would have the same effect as "Enqueue next")
the action would still be shown.
Currently translated at 100.0% (646 of 646 strings)
Translated using Weblate (Hindi)
Currently translated at 100.0% (646 of 646 strings)
Translated using Weblate (Korean)
Currently translated at 100.0% (646 of 646 strings)
Translated using Weblate (French)
Currently translated at 100.0% (646 of 646 strings)
Translated using Weblate (Norwegian Nynorsk)
Currently translated at 9.1% (59 of 646 strings)
Translated using Weblate (Punjabi (Pakistan))
Currently translated at 19.6% (127 of 646 strings)
Translated using Weblate (Norwegian Bokmål)
Currently translated at 99.0% (640 of 646 strings)
Translated using Weblate (Arabic (Libya))
Currently translated at 5.5% (4 of 72 strings)
Translated using Weblate (Hindi)
Currently translated at 18.0% (13 of 72 strings)
Translated using Weblate (Hungarian)
Currently translated at 11.1% (8 of 72 strings)
Translated using Weblate (Portuguese)
Currently translated at 69.4% (50 of 72 strings)
Translated using Weblate (Filipino)
Currently translated at 5.5% (4 of 72 strings)
Translated using Weblate (Filipino)
Currently translated at 35.9% (232 of 646 strings)
Translated using Weblate (Catalan)
Currently translated at 95.9% (620 of 646 strings)
Translated using Weblate (Hindi)
Currently translated at 78.7% (509 of 646 strings)
Translated using Weblate (Turkish)
Currently translated at 100.0% (646 of 646 strings)
Translated using Weblate (Chinese (Traditional, Hong Kong))
Currently translated at 100.0% (646 of 646 strings)
Translated using Weblate (Portuguese (Portugal))
Currently translated at 69.4% (50 of 72 strings)
Translated using Weblate (Spanish)
Currently translated at 100.0% (72 of 72 strings)
Translated using Weblate (Azerbaijani)
Currently translated at 100.0% (646 of 646 strings)
Translated using Weblate (Odia)
Currently translated at 100.0% (646 of 646 strings)
Translated using Weblate (Persian)
Currently translated at 61.1% (44 of 72 strings)
Translated using Weblate (Russian)
Currently translated at 41.6% (30 of 72 strings)
Translated using Weblate (Persian)
Currently translated at 100.0% (646 of 646 strings)
Translated using Weblate (Norwegian Nynorsk)
Currently translated at 6.1% (40 of 646 strings)
Translated using Weblate (Odia)
Currently translated at 100.0% (646 of 646 strings)
Translated using Weblate (Odia)
Currently translated at 2.7% (2 of 72 strings)
Translated using Weblate (Lithuanian)
Currently translated at 100.0% (646 of 646 strings)
Translated using Weblate (French)
Currently translated at 100.0% (646 of 646 strings)
Translated using Weblate (Odia)
Currently translated at 30.1% (195 of 646 strings)
Translated using Weblate (Russian)
Currently translated at 41.6% (30 of 72 strings)
Translated using Weblate (Norwegian Bokmål)
Currently translated at 92.2% (596 of 646 strings)
Translated using Weblate (Hindi)
Currently translated at 69.6% (450 of 646 strings)
Added translation using Weblate (Norwegian Nynorsk)
Translated using Weblate (Georgian)
Currently translated at 100.0% (646 of 646 strings)
Translated using Weblate (Ukrainian)
Currently translated at 100.0% (646 of 646 strings)
Translated using Weblate (Icelandic)
Currently translated at 99.0% (640 of 646 strings)
Translated using Weblate (Punjabi)
Currently translated at 6.9% (5 of 72 strings)
Translated using Weblate (German)
Currently translated at 62.5% (45 of 72 strings)
Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (646 of 646 strings)
Translated using Weblate (Georgian)
Currently translated at 20.1% (130 of 646 strings)
Translated using Weblate (Georgian)
Currently translated at 98.6% (71 of 72 strings)
Added translation using Weblate (Georgian)
Co-authored-by: AudricV <avdivers84@gmail.com>
Co-authored-by: Boros Zsombor <zsombor2626@gmail.com>
Co-authored-by: Cyndaquissshhh <iversonbriones123@gmail.com>
Co-authored-by: Emin Tufan Çetin <etcetin@gmail.com>
Co-authored-by: GET100PERCENT <eraofphysics@yahoo.com>
Co-authored-by: Gediminas Murauskas <muziejusinfo@gmail.com>
Co-authored-by: Hoseok Seo <ddinghoya@gmail.com>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Ihor Hordiichuk <igor_ck@outlook.com>
Co-authored-by: JY3 <GeeyunJY3@gmail.com>
Co-authored-by: L-M-H <lars.magnus@herland.priv.no>
Co-authored-by: M. Ll <mklr95@gmail.com>
Co-authored-by: M4SK <themightyloki@free.fr>
Co-authored-by: Nahla Hamdi <nahlahamdi87@gmail.com>
Co-authored-by: Net <nizamismidov4@gmail.com>
Co-authored-by: Nikoloz <nukushatugushi@gmail.com>
Co-authored-by: Pedro Henrique Vilela do Nascimento <pedro.hvn@usp.br>
Co-authored-by: Platon Terekhov <gibbonsville_cowal@simplelogin.com>
Co-authored-by: Ray <ray.cfu@protonmail.com>
Co-authored-by: ShareASmile <aapshergill@gmail.com>
Co-authored-by: Trendyne <eiko@chiru.no>
Co-authored-by: VfBFan <drop0815@posteo.de>
Co-authored-by: Weblate <noreply@weblate.org>
Co-authored-by: bgo-eiu <huyaqoob+toolforge@gmail.com>
Co-authored-by: gallegonovato <fran-carro@hotmail.es>
Co-authored-by: qqqq1 <qqqq1@hi2.in>
Co-authored-by: ssantos <ssantos@web.de>
Co-authored-by: tryvseu <tryvseu@tuta.io>
Co-authored-by: Артём Нефедов <artem10397g@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/newpipe/metadata/ar_LY/
Translate-URL: https://hosted.weblate.org/projects/newpipe/metadata/de/
Translate-URL: https://hosted.weblate.org/projects/newpipe/metadata/es/
Translate-URL: https://hosted.weblate.org/projects/newpipe/metadata/fa/
Translate-URL: https://hosted.weblate.org/projects/newpipe/metadata/fil/
Translate-URL: https://hosted.weblate.org/projects/newpipe/metadata/hi/
Translate-URL: https://hosted.weblate.org/projects/newpipe/metadata/hu/
Translate-URL: https://hosted.weblate.org/projects/newpipe/metadata/ka/
Translate-URL: https://hosted.weblate.org/projects/newpipe/metadata/or/
Translate-URL: https://hosted.weblate.org/projects/newpipe/metadata/pa/
Translate-URL: https://hosted.weblate.org/projects/newpipe/metadata/pt/
Translate-URL: https://hosted.weblate.org/projects/newpipe/metadata/pt_PT/
Translate-URL: https://hosted.weblate.org/projects/newpipe/metadata/ru/
Translation: NewPipe/Metadata
android:exported in now required in the manifest on all activities/services/receivers/providers. It was set to true for those that need to interact with outside apps or the OS, while others have exported=false.
This also required updating LeakCanary to the latest version as the older version being used was not using android:exported in AndroidManifest.xml.
- Avoid NullPointerException crashes if there is no UiModeManager or desktop
system service mode
- Use final for every exception
- Suppress missing fields warnings
- Add missing NonNull annotation
This method is not needed anymore, as ShareUtils.copyToClipboard does
almost the same thing (no label is set on the ClipData used to copy text,
contrary to what Utility did, but using "text" as a ClipData label doesn't seem
useful).
It was used in MissionAdapter.handlePopupItem to copy the SHA1 or the MD5 of a
file.