Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
276 commits
Select commit Hold shift + click to select a range
a0ee1b1
Merge branch 'dev' into issue-#2254
Jan 14, 2020
590722d
manually update the Simplified Chinese lang file.
chr56 Jan 15, 2020
9d8fcbb
fix: wrong language shown when rotating screen in popup player
B0pol Jan 15, 2020
570dded
Add field START_PAUSED to the Player Intent
raphj Jan 16, 2020
ef90493
Deduplicate code switching to another player into a function
raphj Jan 16, 2020
7dbb2b2
Simplify an if expression
raphj Jan 16, 2020
0cd9fb3
Merge branch 'dev' into dev
B0pol Jan 17, 2020
b837912
Merge branch 'dev' into m4a-stsc-stco
kapodamy Jan 18, 2020
a0548fd
Merge branch 'dev' into android5-temp-dir-issue
kapodamy Jan 18, 2020
845767e
StandardCharsets.UTF_8 instead of Charset.forName("utf-8")
kapodamy Jan 18, 2020
ed18466
Merge branch 'dev' into subtitles
kapodamy Jan 18, 2020
a2d3e2c
2 typo fixup
kapodamy Jan 18, 2020
b155f23
fix: wrong language shown in playback parameters dialog
B0pol Jan 18, 2020
e08e724
upload date in description now matches newpipe's language
B0pol Jan 18, 2020
266c3d0
Merge branch 'dev' into issue-#2254
Stypox Jan 19, 2020
8c3be2c
Merge pull request #2960 from karkaminski/issue-#2254
Stypox Jan 19, 2020
77aa12d
Rename local playlist by long-clicking in BookmarkFragment.
XiangRongLin Jan 13, 2020
e58088d
Merge branch 'dev' into dev
B0pol Jan 19, 2020
9d5612d
Translated using Weblate (German)
B0pol Jan 18, 2020
6b7043f
Translated using Weblate (French)
B0pol Jan 17, 2020
2873f72
Translated using Weblate (Russian)
Jan 16, 2020
5dbab85
Translated using Weblate (Italian)
pjammo Jan 16, 2020
1c53b22
Translated using Weblate (Portuguese)
SantosSi Jan 15, 2020
9c9a432
Translated using Weblate (Basque)
osoitz Jan 18, 2020
36c4063
Translated using Weblate (Esperanto)
B0pol Jan 17, 2020
84dd1a6
Translated using Weblate (Czech)
zeritti Jan 17, 2020
de1a925
Translated using Weblate (Arabic)
Jan 16, 2020
7e93456
Translated using Weblate (Indonesian)
zmni Jan 17, 2020
366c55c
Translated using Weblate (Polish)
B0pol Jan 17, 2020
4797cd9
Translated using Weblate (Chinese (Simplified))
LilligantMatsuri Jan 18, 2020
62906fb
Translated using Weblate (Chinese (Traditional))
s8321414 Jan 17, 2020
b6028ce
Translated using Weblate (Kurdish)
ShexSMohammed Jan 17, 2020
0e39071
Translated using Weblate (Urdu)
B0pol Jan 17, 2020
cf60033
Translated using Weblate (Norwegian Bokmål)
comradekingu Jan 16, 2020
ba245c4
Merge branch 'origin/dev' into Weblate.
weblate Jan 19, 2020
7718581
Merge branch 'dev' into m4a-stsc-stco
kapodamy Jan 21, 2020
776d8a4
Merge branch 'dev' into android5-temp-dir-issue
kapodamy Jan 21, 2020
afc362d
readability changes
kapodamy Jan 21, 2020
b8f7261
Merge branch 'dev' into subtitles
kapodamy Jan 21, 2020
0ed3354
Use custom dialog to edit and delete local playlists at once
XiangRongLin Jan 21, 2020
ee0f94c
Translated using Weblate (Chinese (Simplified))
chr56 Jan 22, 2020
167653a
fix wrong strings in values-zh-rCN.
chr56 Jan 22, 2020
ce07539
Translated using Weblate (Kurdish)
ShexSMohammed Jan 21, 2020
1f975c0
Translated using Weblate (Norwegian Bokmål)
comradekingu Jan 21, 2020
e224f8c
Translated using Weblate (Urdu)
abusarimhindi Jan 23, 2020
c21ccef
Translated using Weblate (Esperanto)
B0pol Jan 22, 2020
d3aadc7
Translated using Weblate (Urdu)
B0pol Jan 24, 2020
64b0ccd
Translated using Weblate (Urdu)
abusarimhindi Jan 24, 2020
e9fda96
Translated using Weblate (Norwegian Bokmål)
comradekingu Jan 23, 2020
5bc0d2c
Merge branch 'master' into dev
TobiGr Jan 24, 2020
489420e
Merge branch 'dev' into dev
B0pol Jan 24, 2020
b2d7878
Translated using Weblate (Urdu)
abusarimhindi Jan 24, 2020
fa7173b
Merge branch 'origin/dev' into Weblate.
weblate Jan 24, 2020
b430a23
Merge branch 'dev' into 1907renamePlaylist
XiangRongLin Jan 25, 2020
e1145f1
ask for display over other apps permission in settings
harshlele Jan 25, 2020
7f7bf84
Add link to FAQ in README
TobiGr Jan 25, 2020
52420d4
Merge branch 'dev' into ask-overlay-perm-settings
harshlele Jan 26, 2020
bf5e94f
Merge pull request #2957 from kapodamy/subtitles
TobiGr Jan 26, 2020
cc83991
Merge pull request #2958 from kapodamy/android5-temp-dir-issue
TobiGr Jan 26, 2020
37409e7
Merge branch 'dev' into 1907renamePlaylist
XiangRongLin Jan 26, 2020
609855f
Merge pull request #2917 from raphj/patch-1
TobiGr Jan 26, 2020
9c58a07
Translated using Weblate (Japanese)
AioiLight Jan 25, 2020
14b3cf7
Translated using Weblate (Filipino)
Iamdeadlyz Jan 25, 2020
af9e242
Merge branch 'origin/dev' into Weblate.
weblate Jan 26, 2020
b5ea61a
Merge branch 'dev' into 1907renamePlaylist
XiangRongLin Jan 26, 2020
94403a9
Add send to Kodi button to player next to share button
christophehenry Apr 25, 2019
be92921
Merge pull request #2310 from christophehenry/add-kodi-share-player
TobiGr Jan 27, 2020
e94981e
Merge branch 'dev' into dev
B0pol Jan 27, 2020
156a2eb
update prettytime dependency
B0pol Jan 27, 2020
e082976
Translated using Weblate (Tamil)
sithananthan Jan 27, 2020
42bb96a
Translated using Weblate (Spanish)
larjona Jan 27, 2020
c486368
Translated using Weblate (Korean)
Jan 27, 2020
c17d809
Translated using Weblate (Urdu)
abusarimhindi Jan 26, 2020
e98f27c
Merge branch 'origin/dev' into Weblate.
weblate Jan 28, 2020
153790d
Translated using Weblate (Russian)
Jan 28, 2020
1f24c18
reformatted and commented code
harshlele Jan 28, 2020
a787627
reformatted code
harshlele Jan 28, 2020
fbf6351
Translated using Weblate (Urdu)
abusarimhindi Jan 28, 2020
69bf1c5
Merge branch 'dev' into dev
chr56 Jan 29, 2020
fd3d61c
fixes #3021, see also https://github.com/TeamNewPipe/NewPipe-legacy/p…
mqus Jan 29, 2020
0447e4e
Merge pull request #3032 from mqus/fix_subtitles
TobiGr Jan 29, 2020
342377e
restore offset after writting lastest CTTS entries
kapodamy Jan 29, 2020
0c56085
typo fixup
kapodamy Jan 29, 2020
1ae8ca1
Merge branch 'm4a-stsc-stco' of https://github.com/kapodamy/NewPipe i…
kapodamy Jan 29, 2020
bda6139
Merge branch 'dev' into m4a-stsc-stco
kapodamy Jan 29, 2020
edc9d47
app language: refactoring
B0pol Jan 28, 2020
d34e5f7
Translated using Weblate (Hungarian)
xerage Jan 28, 2020
d686a2c
Translated using Weblate (Urdu)
abusarimhindi Jan 29, 2020
eab3f8b
Merge branch 'origin/dev' into Weblate.
weblate Jan 29, 2020
2977de1
Translated using Weblate (Urdu)
abusarimhindi Jan 29, 2020
089a9f1
Translated using Weblate (German)
nautilusx Jan 31, 2020
6be23a0
fix wrong language shown many popup dialogs
B0pol Jan 31, 2020
f7203d4
Fix formatting and use lamda functions
TobiGr Feb 1, 2020
bcb3cb9
Merge pull request #3004 from harshlele/ask-overlay-perm-settings
TobiGr Feb 1, 2020
2642d6f
Merge remote-tracking branch 'Weblate/dev' into dev
TobiGr Feb 1, 2020
c5e6bb5
Merge remote-tracking branch 'upstream/dev' into dev
B0pol Feb 1, 2020
55a138e
fix toast on app language change
B0pol Feb 1, 2020
d36ac7a
Improve formatting
TobiGr Feb 1, 2020
14e8522
Merge pull request #2921 from B0pol/dev
TobiGr Feb 1, 2020
cd225eb
Merge branch 'dev' into dev
chr56 Feb 1, 2020
90c20f1
Move log statement into "if (DEBUG)"
XiangRongLin Feb 1, 2020
e8c3ab8
Merge branch 'dev' into 1907renamePlaylist
XiangRongLin Feb 1, 2020
8712310
Move more log statements into "if (DEBUG)"
XiangRongLin Feb 1, 2020
2a903f6
Translated using Weblate (German)
franconian Jan 31, 2020
766326a
Translated using Weblate (French)
B0pol Feb 1, 2020
fb0d626
Translated using Weblate (Swedish)
iah Jan 31, 2020
48a2d2d
Merge branch 'origin/dev' into Weblate.
weblate Feb 1, 2020
c0519d8
fixes #3021, see also https://github.com/TeamNewPipe/NewPipe-legacy/p…
mqus Jan 29, 2020
61d102d
Change recaptcha string names to match style
Stypox Jan 29, 2020
a3d8848
Add "Done" drawable (only white since it is used on toolbar)
Stypox Jan 29, 2020
daa4fd5
Fix ReCaptchaActivity crash and save cookies correctly
Stypox Jan 29, 2020
4e1638f
Remove space between "Done" button and ReCaptchaActivity title
Stypox Jan 29, 2020
fe138f6
Improve formatting
Stypox Jan 30, 2020
0cc890a
Move "Done" button and make it theme conpliant in ReCaptcha
Stypox Feb 1, 2020
9b09028
Try to extract cookies just before closing recaptcha activity
Stypox Feb 1, 2020
1bf55c2
Remove left-behind Log
Stypox Feb 1, 2020
f95d51b
Merge branch 'dev' of github.com:TeamNewPipe/NewPipe into recaptcha
Stypox Feb 1, 2020
38d1938
Translated using Weblate (Russian)
Feb 1, 2020
d1801e1
Merge branch 'dev' into m4a-stsc-stco
kapodamy Feb 1, 2020
7568af4
fix wrong strings in Simplified Chinese
chr56 Feb 2, 2020
a117e45
Use AlertDialog.Builder instead of BookmarkDialog class for the same …
XiangRongLin Feb 2, 2020
07c7398
Translated using Weblate (Turkish)
Feb 2, 2020
9f0efdd
Translated using Weblate (Turkish)
emintufan Feb 2, 2020
b589ee6
Merge pull request #2954 from XiangRongLin/1907renamePlaylist
Stypox Feb 2, 2020
6da9096
Fix addYoutubeCookies functions (Yt changed things lately)
Stypox Feb 2, 2020
3372bac
Merge branch 'dev' into recaptcha
Stypox Feb 2, 2020
b684115
Remove unused imports and clean up comment style
Stypox Feb 2, 2020
471ce4a
Merge pull request #3035 from Stypox/recaptcha
TobiGr Feb 2, 2020
46c1155
Translated using Weblate (Turkish)
emintufan Feb 2, 2020
2c27f78
Translated using Weblate (Turkish)
Feb 3, 2020
b5684ee
Translated using Weblate (Esperanto)
B0pol Feb 2, 2020
bb8bcf3
Translated using Weblate (Czech)
auzkok Feb 2, 2020
ed9c85b
Translated using Weblate (Hebrew)
yarons Feb 1, 2020
2cceb04
Translated using Weblate (Polish)
Feb 1, 2020
5d5c2ae
Translated using Weblate (Spanish)
j9o1 Feb 3, 2020
0a23748
Translated using Weblate (French)
B0pol Feb 2, 2020
9560cf5
Translated using Weblate (Swedish)
iah Feb 3, 2020
6941917
Translated using Weblate (Slovak)
marulinko Feb 2, 2020
7009dc5
Translated using Weblate (Kurdish)
ShexSMohammed Feb 1, 2020
0f0a367
Translated using Weblate (Chinese (Traditional))
s8321414 Feb 2, 2020
2805850
Merge branch 'origin/dev' into Weblate.
weblate Feb 3, 2020
af411a6
added ability to copy comments on long press
harshlele Feb 4, 2020
bc393e6
removed settings entry
harshlele Feb 4, 2020
b5f069d
Translated using Weblate (Russian)
Feb 4, 2020
2bac66b
Translated using Weblate (German)
nautilusx Feb 4, 2020
21184f8
Update CommentsMiniInfoItemHolder.java
harshlele Feb 5, 2020
34e3180
removed empty line
harshlele Feb 6, 2020
487952f
Merge pull request #3053 from harshlele/copy-comment-long-press
TobiGr Feb 6, 2020
aaf5d7b
Update DataReader.java
kapodamy Feb 6, 2020
7045f97
fix thumbnail for PeerTube, and description changes
B0pol Feb 2, 2020
badaff8
refactor Description
B0pol Feb 6, 2020
294c35b
Spelling: the settings
comradekingu Feb 7, 2020
4c13dda
Spelling: Could not establish secure connection
comradekingu Feb 7, 2020
3abc660
Spelling: Install the fresh NewPipe version.
comradekingu Feb 7, 2020
f319e3e
Spelling: Treat the NewPipe makers to something you like
comradekingu Feb 7, 2020
85acc53
Spelling: Video thumbnail shown
comradekingu Feb 7, 2020
6d49148
Translated using Weblate (Turkish)
Feb 4, 2020
a476f33
Translated using Weblate (German)
B0pol Feb 5, 2020
06eff25
Translated using Weblate (Esperanto)
B0pol Feb 4, 2020
75248d7
Translated using Weblate (Basque)
osoitz Feb 6, 2020
ce003d2
Translated using Weblate (Czech)
auzkok Feb 4, 2020
5ed5a81
Translated using Weblate (Hebrew)
yarons Feb 4, 2020
83d43f8
Translated using Weblate (Polish)
Feb 4, 2020
72e90b4
Translated using Weblate (Arabic)
Feb 6, 2020
06e536e
Translated using Weblate (Indonesian)
zmni Feb 5, 2020
e9dc969
Translated using Weblate (Spanish)
j9o1 Feb 4, 2020
c93be13
Translated using Weblate (French)
B0pol Feb 4, 2020
7568616
Translated using Weblate (Kurdish)
ShexSMohammed Feb 4, 2020
6adbfad
Translated using Weblate (Chinese (Traditional))
s8321414 Feb 4, 2020
9eb55e1
Translated using Weblate (Norwegian Bokmål)
comradekingu Feb 3, 2020
13f5d3b
Merge branch 'origin/dev' into Weblate.
weblate Feb 7, 2020
3ff85c2
Make report error title in snackbar uppercase again
TobiGr Feb 7, 2020
2d62fa4
real markdown support for descriptions
B0pol Feb 8, 2020
88c6831
Merge branch 'dev' into tubepeer
B0pol Feb 8, 2020
d3cb887
Merge branch 'dev' into m4a-stsc-stco
kapodamy Feb 8, 2020
3f3d1bf
update extractor version
B0pol Feb 8, 2020
07544cd
Merge pull request #3044 from B0pol/tubepeer
TobiGr Feb 8, 2020
ec45d4a
Merge pull request #2959 from kapodamy/m4a-stsc-stco
TobiGr Feb 8, 2020
eb7d9f7
Translated using Weblate (Japanese)
AioiLight Feb 8, 2020
c1d9a25
Translated using Weblate (Italian)
pjammo Feb 8, 2020
7478e96
Merge branch 'origin/dev' into Weblate.
weblate Feb 9, 2020
a75deb6
Reverted changes
comradekingu Feb 9, 2020
0882d9d
Translated using Weblate (Turkish)
ali-demirtas Feb 9, 2020
17d0083
Translated using Weblate (Ukrainian)
flatcow Feb 10, 2020
99400fa
Translated using Weblate (Czech)
zeritti Feb 10, 2020
9f9c6ef
Translated using Weblate (Malay)
Feb 9, 2020
aecc908
Translated using Weblate (Spanish)
fitojb Feb 9, 2020
3624f1b
Translated using Weblate (Serbian)
burstw0w Feb 11, 2020
c7a9847
Translated using Weblate (Portuguese (Brazil))
Feb 13, 2020
3b5cf0e
Translated using Weblate (Portuguese)
Feb 13, 2020
c995c6f
Translated using Weblate (Croatian)
milotype Feb 12, 2020
67af05e
Use "Report error" instead of "Report Error"
TobiGr Feb 14, 2020
a843e80
Merge branch 'master' into dev
TobiGr Feb 14, 2020
dbb6848
Translated using Weblate (Esperanto)
B0pol Feb 14, 2020
0d89667
Translated using Weblate (French)
B0pol Feb 14, 2020
302a6ff
Merge branch 'dev' of https://github.com/TeamNewPipe/NewPipe into Tea…
chr56 Feb 15, 2020
ac0bcea
Merge branch 'TeamNewPipe-dev' into dev
chr56 Feb 15, 2020
6a91a3a
reapply changes after merging
chr56 Feb 15, 2020
9407ac8
fix reCaptcha strings in zh-rCN
chr56 Feb 15, 2020
5151c6c
fix wrong langcode of Chinesein settings_keys.xml
chr56 Feb 15, 2020
f089cd0
Multiple localization fixes
B0pol Feb 14, 2020
9fb5aa4
Merge remote-tracking branch 'Weblate/dev' into dev
TobiGr Feb 15, 2020
00b6bd5
Merge pull request #2865 from chr56/dev
TobiGr Feb 15, 2020
ea54520
Merge branch 'dev' into localisation
B0pol Feb 15, 2020
5b541cc
resolve merge conflicts
B0pol Feb 15, 2020
6f9543b
Translated using Weblate (Esperanto)
B0pol Feb 15, 2020
7845b76
Merge branch 'origin/dev' into Weblate.
weblate Feb 16, 2020
4de2cfd
Added translation using Weblate (Chuvash)
B0pol Feb 16, 2020
51f2efd
Fix initial brightness value
vhsw Feb 16, 2020
69934de
Merge branch 'dev' into dev
vhsw Feb 16, 2020
3b57135
Merge branch 'dev' into patch-10
Stypox Feb 16, 2020
e62e34f
created default_localization_key
B0pol Feb 15, 2020
fbcee61
Apply suggestions from code review
TobiGr Feb 16, 2020
ff49340
Merge pull request #2938 from comradekingu/patch-10
TobiGr Feb 17, 2020
09d36a5
Merge branch 'dev' into localisation
B0pol Feb 17, 2020
e3a8916
Get brightness from settings if screenBrightness is set to auto
vhsw Feb 17, 2020
54f71c6
use plural string for dynamic_seek_duration_description
B0pol Feb 17, 2020
5495be7
Merge branch 'dev' into dev
vhsw Feb 17, 2020
55d17b5
added all the .iml files in gitignore, not only app.iml
B0pol Feb 17, 2020
9912ee8
give info if content language is system on crash
B0pol Feb 18, 2020
831e998
Migrate annotation to androidx on ReCaptchaActivity
spk Feb 18, 2020
c76ff8d
Merge pull request #3109 from spk/fix-androidx-nonnull
TobiGr Feb 18, 2020
4230e11
Merge branch 'dev' into dev
vhsw Feb 19, 2020
12c7284
Merge pull request #3102 from vhsw/dev
Stypox Feb 19, 2020
3168717
Update app/.gitignore
B0pol Feb 19, 2020
f0e85b3
Translated using Weblate (Finnish)
Feb 19, 2020
f1688fb
Merge branch 'origin/dev' into Weblate.
weblate Feb 19, 2020
61632b3
fixup for #3081
kapodamy Feb 20, 2020
18d986a
Merge pull request #3117 from kapodamy/fixup
TobiGr Feb 20, 2020
9f9b53c
remove unecessary «few» and «many» for plural string in english
B0pol Feb 20, 2020
5680b7c
Merge branch 'dev' into localisation
Stypox Feb 21, 2020
f7d73fc
Translated using Weblate (Czech)
auzkok Feb 20, 2020
fd076f5
Translated using Weblate (Czech)
zeritti Feb 21, 2020
d460351
Translated using Weblate (Turkish)
Feb 20, 2020
e1101dd
Translated using Weblate (Hebrew)
yarons Feb 20, 2020
47d2ae5
Translated using Weblate (Polish)
Feb 20, 2020
ae5360f
Translated using Weblate (Polish)
Feb 21, 2020
da43f47
Translated using Weblate (Indonesian)
zmni Feb 21, 2020
95a6aaa
Translated using Weblate (Kurdish)
ShexSMohammed Feb 21, 2020
40207b5
Translated using Weblate (Chinese (Traditional))
s8321414 Feb 20, 2020
30e5e58
Translated using Weblate (Chinese (Simplified))
chr56 Feb 20, 2020
6e5851a
Translated using Weblate (Bengali (Bangladesh))
bonomali Feb 21, 2020
431724f
Merge branch 'origin/dev' into Weblate.
weblate Feb 21, 2020
3b8a55f
Merge pull request #3098 from B0pol/localisation
TobiGr Feb 21, 2020
f5f81be
Merge remote-tracking branch 'Weblate/dev' into dev
TobiGr Feb 21, 2020
e539753
Clean translations
TobiGr Feb 21, 2020
9445e8e
Remove 'duration_live_button' string from translations
TobiGr Feb 21, 2020
476b3f8
Add changelog
TobiGr Feb 21, 2020
e84d531
Update extractor version to latest release
TobiGr Feb 21, 2020
533aede
Update bump version to 0.18.4 (840)
TobiGr Feb 21, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</p>
<hr>
<p align="center"><a href="#screenshots">Screenshots</a> &bull; <a href="#description">Description</a> &bull; <a href="#features">Features</a> &bull; <a href="#updates">Updates</a> &bull; <a href="#contribution">Contribution</a> &bull; <a href="#donate">Donate</a> &bull; <a href="#license">License</a></p>
<p align="center"><a href="https://newpipe.schabi.org">Website</a> &bull; <a href="https://newpipe.schabi.org/blog/">Blog</a> &bull; <a href="https://newpipe.schabi.org/press/">Press</a></p>
<p align="center"><a href="https://newpipe.schabi.org">Website</a> &bull; <a href="https://newpipe.schabi.org/blog/">Blog</a> &bull; <a href="https://newpipe.schabi.org/FAQ/">FAQ</a> &bull; <a href="https://newpipe.schabi.org/press/">Press</a></p>
<hr>

<b>WARNING: THIS IS A BETA VERSION, THEREFORE YOU MAY ENCOUNTER BUGS. IF YOU DO, OPEN AN ISSUE VIA OUR GITHUB REPOSITORY.</b>
Expand Down
2 changes: 1 addition & 1 deletion app/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.gitignore
/build
app.iml
*.iml
12 changes: 8 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ android {
applicationId "org.schabi.newpipe"
minSdkVersion 19
targetSdkVersion 28
versionCode 830
versionName "0.18.3"
versionCode 840
versionName "0.18.4"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
Expand Down Expand Up @@ -53,6 +53,7 @@ ext {
okHttpLibVersion = '3.12.6'
icepickLibVersion = '3.2.0'
stethoLibVersion = '1.5.0'
markwonVersion = '4.2.1'
}

dependencies {
Expand All @@ -62,7 +63,7 @@ dependencies {
exclude module: 'support-annotations'
})

implementation 'com.github.TeamNewPipe:NewPipeExtractor:33961b20'
implementation 'com.github.TeamNewPipe:NewPipeExtractor:v0.18.4'
testImplementation 'junit:junit:4.12'
testImplementation 'org.mockito:mockito-core:2.23.0'

Expand Down Expand Up @@ -94,7 +95,7 @@ dependencies {
implementation 'io.reactivex.rxjava2:rxjava:2.2.2'
implementation 'io.reactivex.rxjava2:rxandroid:2.1.0'
implementation 'com.jakewharton.rxbinding2:rxbinding:2.1.1'
implementation 'org.ocpsoft.prettytime:prettytime:4.0.1.Final'
implementation 'org.ocpsoft.prettytime:prettytime:4.0.3.Final'

implementation "androidx.room:room-runtime:${roomDbLibVersion}"
implementation "androidx.room:room-rxjava2:${roomDbLibVersion}"
Expand All @@ -108,4 +109,7 @@ dependencies {

implementation "com.squareup.okhttp3:okhttp:${okHttpLibVersion}"
debugImplementation "com.facebook.stetho:stetho-okhttp3:${stethoLibVersion}"

implementation "io.noties.markwon:core:${markwonVersion}"
implementation "io.noties.markwon:linkify:${markwonVersion}"
}
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@

<activity
android:name=".ReCaptchaActivity"
android:label="@string/reCaptchaActivity"/>
android:label="@string/recaptcha"/>

<provider
android:name="androidx.core.content.FileProvider"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/org/schabi/newpipe/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public void onCreate() {
NewPipe.init(getDownloader(),
Localization.getPreferredLocalization(this),
Localization.getPreferredContentCountry(this));
Localization.init();
Localization.init(getApplicationContext());

StateSaver.init(this);
initNotificationChannel();
Expand Down
29 changes: 16 additions & 13 deletions app/src/main/java/org/schabi/newpipe/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
import android.util.Log;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.Window;
Expand All @@ -56,7 +55,6 @@
import com.google.android.material.navigation.NavigationView;

import org.schabi.newpipe.extractor.NewPipe;
import org.schabi.newpipe.extractor.ServiceList;
import org.schabi.newpipe.extractor.StreamingService;
import org.schabi.newpipe.extractor.exceptions.ExtractionException;
import org.schabi.newpipe.extractor.services.peertube.PeertubeInstance;
Expand All @@ -67,6 +65,7 @@
import org.schabi.newpipe.report.ErrorActivity;
import org.schabi.newpipe.util.Constants;
import org.schabi.newpipe.util.KioskTranslator;
import org.schabi.newpipe.util.Localization;
import org.schabi.newpipe.util.NavigationHelper;
import org.schabi.newpipe.util.PeertubeHelper;
import org.schabi.newpipe.util.PermissionHelper;
Expand All @@ -78,6 +77,8 @@
import java.util.ArrayList;
import java.util.List;

import static org.schabi.newpipe.util.Localization.assureCorrectAppLanguage;

public class MainActivity extends AppCompatActivity {
private static final String TAG = "MainActivity";
public static final boolean DEBUG = !BuildConfig.BUILD_TYPE.equals("release");
Expand Down Expand Up @@ -113,9 +114,9 @@ protected void onCreate(Bundle savedInstanceState) {
if (Build.VERSION.SDK_INT == Build.VERSION_CODES.KITKAT) {
TLSSocketFactoryCompat.setAsDefault();
}

ThemeHelper.setTheme(this, ServiceHelper.getSelectedServiceId(this));

assureCorrectAppLanguage(this);
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

Expand Down Expand Up @@ -419,6 +420,8 @@ protected void onDestroy() {

@Override
protected void onResume() {
assureCorrectAppLanguage(this);
Localization.init(getApplicationContext()); //change the date format to match the selected language on resume
super.onResume();

// close drawer on return, and don't show animation, so its looks like the drawer isn't open
Expand Down Expand Up @@ -449,6 +452,16 @@ protected void onResume() {
sharedPreferences.edit().putBoolean(Constants.KEY_MAIN_PAGE_CHANGE, false).apply();
NavigationHelper.openMainActivity(this);
}

if (sharedPreferences.getBoolean(Constants.KEY_ENABLE_WATCH_HISTORY, true)) {
if (DEBUG) Log.d(TAG, "do not show History-menu as its disabled in settings");
drawerItems.getMenu().findItem(ITEM_ID_HISTORY).setVisible(true);
}

if (!sharedPreferences.getBoolean(Constants.KEY_ENABLE_WATCH_HISTORY, true)) {
if (DEBUG) Log.d(TAG, "show History-menu as its enabled in settings");
drawerItems.getMenu().findItem(ITEM_ID_HISTORY).setVisible(false);
}
}

@Override
Expand Down Expand Up @@ -551,8 +564,6 @@ public boolean onCreateOptionsMenu(Menu menu) {
if (!(fragment instanceof SearchFragment)) {
findViewById(R.id.toolbar).findViewById(R.id.toolbar_search_container).setVisibility(View.GONE);

MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.main_menu, menu);
}

ActionBar actionBar = getSupportActionBar();
Expand All @@ -574,14 +585,6 @@ public boolean onOptionsItemSelected(MenuItem item) {
case android.R.id.home:
onHomeButtonPressed();
return true;
case R.id.action_show_downloads:
return NavigationHelper.openDownloads(this);
case R.id.action_history:
NavigationHelper.openStatisticFragment(getSupportFragmentManager());
return true;
case R.id.action_settings:
NavigationHelper.openSettings(this);
return true;
default:
return super.onOptionsItemSelected(item);
}
Expand Down
Loading