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
Currently translated at 100.0% (621 of 621 strings)
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (621 of 621 strings)
Translated using Weblate (Dutch)
Currently translated at 100.0% (621 of 621 strings)
Translated using Weblate (French)
Currently translated at 100.0% (621 of 621 strings)
Translated using Weblate (Portuguese)
Currently translated at 100.0% (621 of 621 strings)
Translated using Weblate (Polish)
Currently translated at 100.0% (621 of 621 strings)
Translated using Weblate (Korean)
Currently translated at 73.7% (458 of 621 strings)
Translated using Weblate (French)
Currently translated at 66.6% (38 of 57 strings)
Translated using Weblate (Ukrainian)
Currently translated at 78.9% (45 of 57 strings)
Translated using Weblate (Czech)
Currently translated at 100.0% (621 of 621 strings)
Translated using Weblate (French)
Currently translated at 99.8% (620 of 621 strings)
Translated using Weblate (Ukrainian)
Currently translated at 78.9% (45 of 57 strings)
Translated using Weblate (Vietnamese)
Currently translated at 99.8% (620 of 621 strings)
Translated using Weblate (Hungarian)
Currently translated at 0.0% (0 of 57 strings)
Translated using Weblate (Estonian)
Currently translated at 100.0% (621 of 621 strings)
Translated using Weblate (Croatian)
Currently translated at 97.7% (607 of 621 strings)
Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (621 of 621 strings)
Translated using Weblate (Turkish)
Currently translated at 100.0% (621 of 621 strings)
Translated using Weblate (Arabic)
Currently translated at 100.0% (621 of 621 strings)
Translated using Weblate (Romanian)
Currently translated at 100.0% (621 of 621 strings)
Translated using Weblate (German)
Currently translated at 100.0% (621 of 621 strings)
Translated using Weblate (Sardinian)
Currently translated at 100.0% (621 of 621 strings)
Translated using Weblate (Turkish)
Currently translated at 99.6% (619 of 621 strings)
Translated using Weblate (Arabic)
Currently translated at 100.0% (621 of 621 strings)
Translated using Weblate (Basque)
Currently translated at 100.0% (621 of 621 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)
Co-authored-by: Agnieszka C <aga_04@o2.pl>
Co-authored-by: Ajeje Brazorf <lmelonimamo@yahoo.it>
Co-authored-by: Andrij Mizyk <andmizyk@gmail.com>
Co-authored-by: Boros Zsombor <zsombor2626@gmail.com>
Co-authored-by: ButterflyOfFire <ButterflyOfFire@protonmail.com>
Co-authored-by: Eduardo Caron <eduardocaron10@gmail.com>
Co-authored-by: Edward <edwardchirita@mailbox.org>
Co-authored-by: Emin Tufan Çetin <etcetin@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: Krysa Czech <krysaczek@gmail.com>
Co-authored-by: Ldm Public <ldmpub@gmail.com>
Co-authored-by: Milo Ivir <mail@milotype.de>
Co-authored-by: Priit Jõerüüt <hwlate@joeruut.com>
Co-authored-by: Rex_sa <rex.sa@pm.me>
Co-authored-by: San Kang <devrivmt@gmail.com>
Co-authored-by: Sergio Varela <sergitroll9@gmail.com>
Co-authored-by: Sérgio Marques <smarquespt@gmail.com>
Co-authored-by: Terry Louwers <t.louwers@gmail.com>
Co-authored-by: ToldYouThat <itoldyouthat@protonmail.com>
Co-authored-by: bruh <quangtrung02hn16@gmail.com>
Co-authored-by: nautilusx <translate@disroot.org>
Co-authored-by: nzgha <nzghafoss.ldxwe@slmail.me>
Co-authored-by: translator <yasinoc375@advew.com>
Translate-URL: https://hosted.weblate.org/projects/newpipe/metadata/fr/
Translate-URL: https://hosted.weblate.org/projects/newpipe/metadata/hu/
Translate-URL: https://hosted.weblate.org/projects/newpipe/metadata/uk/
Translation: NewPipe/Metadata
* Built on top of Redirons changes
* MediaSessionManager-Metadata get's only update when metadata changes - not every second as it only changes when the metadata changes
* Reworked mediasessionmanager
Currently translated at 10.5% (6 of 57 strings)
Translated using Weblate (Portuguese (Portugal))
Currently translated at 100.0% (621 of 621 strings)
Translated using Weblate (Lithuanian)
Currently translated at 100.0% (621 of 621 strings)
Translated using Weblate (Hebrew)
Currently translated at 100.0% (621 of 621 strings)
Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (621 of 621 strings)
Translated using Weblate (Persian)
Currently translated at 100.0% (621 of 621 strings)
Translated using Weblate (Polish)
Currently translated at 100.0% (621 of 621 strings)
Translated using Weblate (Ukrainian)
Currently translated at 100.0% (621 of 621 strings)
Translated using Weblate (Greek)
Currently translated at 100.0% (621 of 621 strings)
Translated using Weblate (Portuguese)
Currently translated at 100.0% (621 of 621 strings)
Translated using Weblate (Italian)
Currently translated at 100.0% (621 of 621 strings)
Translated using Weblate (French)
Currently translated at 99.8% (620 of 621 strings)
Translated using Weblate (German)
Currently translated at 100.0% (621 of 621 strings)
Translated using Weblate (Slovak)
Currently translated at 100.0% (619 of 619 strings)
Translated using Weblate (Romanian)
Currently translated at 89.9% (557 of 619 strings)
Translated using Weblate (Basque)
Currently translated at 100.0% (619 of 619 strings)
Translated using Weblate (Japanese)
Currently translated at 99.8% (618 of 619 strings)
Translated using Weblate (Russian)
Currently translated at 100.0% (619 of 619 strings)
Translated using Weblate (Javanese)
Currently translated at 10.5% (6 of 57 strings)
Translated using Weblate (Kurdish (Central))
Currently translated at 100.0% (619 of 619 strings)
Translated using Weblate (Javanese)
Currently translated at 9.8% (61 of 619 strings)
Translated using Weblate (Nepali)
Currently translated at 77.8% (482 of 619 strings)
Translated using Weblate (Arabic)
Currently translated at 100.0% (619 of 619 strings)
Co-authored-by: Agnieszka C <aga_04@o2.pl>
Co-authored-by: Ahmad Firdaus <rin.hikaru@gmail.com>
Co-authored-by: ButterflyOfFire <ButterflyOfFire@protonmail.com>
Co-authored-by: Danial Behzadi <dani.behzi@ubuntu.com>
Co-authored-by: Edward <edwardchirita@mailbox.org>
Co-authored-by: Eric <spice2wolf@gmail.com>
Co-authored-by: Gediminas Murauskas <muziejusinfo@gmail.com>
Co-authored-by: GnuPGを使うべきだ <dieeeazpnnqbpddh@cock.email>
Co-authored-by: Gontzal Manuel Pujana Onaindia <thadahdenyse@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: Marian Hanzel <marulinko@gmail.com>
Co-authored-by: MohammedSR Vevo <mohammednajmidin@gmail.com>
Co-authored-by: Prajwol Pradhan <076bei023.prajwol@pcampus.edu.np>
Co-authored-by: Rex_sa <rex.sa@pm.me>
Co-authored-by: Vasilis K <skyhirules@gmail.com>
Co-authored-by: Yaron Shahrabani <sh.yaron@gmail.com>
Co-authored-by: nautilusx <translate@disroot.org>
Co-authored-by: pjammo <adrianoghr@hotmail.it>
Co-authored-by: ssantos <ssantos@web.de>
Translate-URL: https://hosted.weblate.org/projects/newpipe/metadata/jv/
Translate-URL: https://hosted.weblate.org/projects/newpipe/metadata/lt/
Translation: NewPipe/Metadata
Currently translated at 10.5% (6 of 57 strings)
Translated using Weblate (Portuguese (Portugal))
Currently translated at 100.0% (621 of 621 strings)
Translated using Weblate (Lithuanian)
Currently translated at 100.0% (621 of 621 strings)
Translated using Weblate (Hebrew)
Currently translated at 100.0% (621 of 621 strings)
Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (621 of 621 strings)
Translated using Weblate (Persian)
Currently translated at 100.0% (621 of 621 strings)
Translated using Weblate (Polish)
Currently translated at 100.0% (621 of 621 strings)
Translated using Weblate (Ukrainian)
Currently translated at 100.0% (621 of 621 strings)
Translated using Weblate (Greek)
Currently translated at 100.0% (621 of 621 strings)
Translated using Weblate (Portuguese)
Currently translated at 100.0% (621 of 621 strings)
Translated using Weblate (Italian)
Currently translated at 100.0% (621 of 621 strings)
Translated using Weblate (French)
Currently translated at 99.8% (620 of 621 strings)
Translated using Weblate (German)
Currently translated at 100.0% (621 of 621 strings)
Translated using Weblate (Slovak)
Currently translated at 100.0% (619 of 619 strings)
Translated using Weblate (Romanian)
Currently translated at 89.9% (557 of 619 strings)
Translated using Weblate (Basque)
Currently translated at 100.0% (619 of 619 strings)
Translated using Weblate (Japanese)
Currently translated at 99.8% (618 of 619 strings)
Translated using Weblate (Russian)
Currently translated at 100.0% (619 of 619 strings)
Translated using Weblate (Javanese)
Currently translated at 10.5% (6 of 57 strings)
Translated using Weblate (Kurdish (Central))
Currently translated at 100.0% (619 of 619 strings)
Translated using Weblate (Javanese)
Currently translated at 9.8% (61 of 619 strings)
Translated using Weblate (Nepali)
Currently translated at 77.8% (482 of 619 strings)
Translated using Weblate (Arabic)
Currently translated at 100.0% (619 of 619 strings)
Co-authored-by: Agnieszka C <aga_04@o2.pl>
Co-authored-by: Ahmad Firdaus <rin.hikaru@gmail.com>
Co-authored-by: ButterflyOfFire <ButterflyOfFire@protonmail.com>
Co-authored-by: Danial Behzadi <dani.behzi@ubuntu.com>
Co-authored-by: Edward <edwardchirita@mailbox.org>
Co-authored-by: Eric <spice2wolf@gmail.com>
Co-authored-by: Gediminas Murauskas <muziejusinfo@gmail.com>
Co-authored-by: GnuPGを使うべきだ <dieeeazpnnqbpddh@cock.email>
Co-authored-by: Gontzal Manuel Pujana Onaindia <thadahdenyse@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: Marian Hanzel <marulinko@gmail.com>
Co-authored-by: MohammedSR Vevo <mohammednajmidin@gmail.com>
Co-authored-by: Prajwol Pradhan <076bei023.prajwol@pcampus.edu.np>
Co-authored-by: Rex_sa <rex.sa@pm.me>
Co-authored-by: Vasilis K <skyhirules@gmail.com>
Co-authored-by: Yaron Shahrabani <sh.yaron@gmail.com>
Co-authored-by: nautilusx <translate@disroot.org>
Co-authored-by: pjammo <adrianoghr@hotmail.it>
Co-authored-by: ssantos <ssantos@web.de>
Translate-URL: https://hosted.weblate.org/projects/newpipe/metadata/jv/
Translate-URL: https://hosted.weblate.org/projects/newpipe/metadata/lt/
Translation: NewPipe/Metadata
* added mvp play next button in long press menu; new intent handling, new long press dialog entry, new dialog functions, new strings
* changed line length for checkstyle pass
* cleaned comments, moved strings
* Update app/src/main/res/values/strings.xml
to make long press entry more descriptive
Co-authored-by: opusforlife2 <53176348+opusforlife2@users.noreply.github.com>
* Update app/src/main/res/values/strings.xml
Co-authored-by: Stypox <stypox@pm.me>
* replace redundant nextOnVideoPlayer methods
Co-authored-by: Stypox <stypox@pm.me>
* add enqueueNextOnPlayer and enqueueOnPlayer without selectOnAppend and RESUME_PLAYBACK/ deprecate enqueueNextOn*Player and enqueueOn*Player methods
add getPlayerIntent, getPlayerEnqueueIntent and getPlayerEnqueueNextIntent without selectOnAppend and RESUME_PLAYBACK/ deprecate those with
add section comments
* removed deprecated methods
removed redundant methods
* removed deprecated methods
removed redundant methods
* replaced APPEND_ONLY, removed SELECT_ON_APPEND / replaced remaining enqueueOn*Player methods
* now works with playlists
* renamed dialog entry
* checking for >1 items in the queue using the PlayerHolder
* making enqueue*OnPlayer safe to call when no video is playing (defaulting to audio)
* corrected strings
* improve getQueueSize in PlayerHolder
* long press to enqueue only if queue isnt empty
* add Whitespace
Co-authored-by: Stypox <stypox@pm.me>
* clarify comments / add spaces
* PlayerType as parameter of the enqueueOnPlayer method
add Helper method
* using the helper function everywhere (except for the background and popup long-press actions (also on playlists, history, ...)), so basically nowhere
/ passing checkstyle
* assimilated the enqueue*OnPlayer methods
* removed redundant comment, variable
* simplify code line
Co-authored-by: Stypox <stypox@pm.me>
* move if
* replace workaround for isPlayerOpen()
Co-authored-by: Stypox <stypox@pm.me>
* replaced workarounds (getType), corrected static access with getInstance
* remove unused imports
* changed method call to original, new method doesnt exist yet.
* Use getter method instead of property access syntax.
* improve conditional for play next entry
Co-authored-by: Stypox <stypox@pm.me>
* show play next btn in feed fragment
Co-authored-by: Stypox <stypox@pm.me>
* add play next to local playlist and statistics fragment
Co-authored-by: Stypox <stypox@pm.me>
* formating
Co-authored-by: Stypox <stypox@pm.me>
* correcting logic
Co-authored-by: Stypox <stypox@pm.me>
* remove 2 year old unused string, formating
Co-authored-by: Stypox <stypox@pm.me>
* correct enqueue (next) conditionals, default to background if no player is open. Dont generally default to background play.
* remove player open checks from button long press enqueue actions
* improve log msg
* Rename next to enqueue_next
* Refactor kotlin
Co-authored-by: opusforlife2 <53176348+opusforlife2@users.noreply.github.com>
Co-authored-by: Stypox <stypox@pm.me>