Commit graph

244 commits

Author SHA1 Message Date
XiangRongLin
e7022ccc94 Remove subclasses from ContentSettingsManagerTest
ExportTest provides no value.
ImportTest creates temporary files even if not needed.
2021-01-03 20:32:16 +01:00
XiangRongLin
2a3198de66 Introduce NewPipeFileLocator class 2021-01-03 20:32:16 +01:00
XiangRongLin
85d43a34ab Move isValidZipFile to ZipHelper 2021-01-03 20:32:16 +01:00
XiangRongLin
09d7c2289c Adjust ExportTest to new DI with FileLocator 2021-01-03 20:32:16 +01:00
XiangRongLin
c3e0db628b Introduce NewPipeFileLocator class
It handles locating specific NewPipe files based on the home directory of the app.
2021-01-03 20:32:16 +01:00
XiangRongLin
2327fa7351 Extract import database logic in ContentSettingsManager 2021-01-03 20:32:16 +01:00
Isira Seneviratne
55c770cd1b Use Objects.requireNonNull(). 2021-01-02 09:36:33 +05:30
Isira Seneviratne
1e8b014e7c Use view binding in SettingsActivity. 2020-12-19 04:22:01 +05:30
XiangRongLin
be8716c0ea Fix compile error caused by auto merging
#5176 changed `homeDir` from type `String` to `File`. #5059 was based on `homeDir` being a `String`. It was incorrectly auto-resolved by git.
2020-12-15 20:26:38 +01:00
Stypox
8ef61f2765 Merge pull request #5059 from XiangRongLin/content_settings_manager
Extract export database logic into own class
2020-12-15 10:34:32 +01:00
Stypox
9bea46744b Merge pull request #5178 from Isira-Seneviratne/Use_ActivityCompat_recreate
Use ActivityCompat.recreate().
2020-12-15 09:49:14 +01:00
Isira Seneviratne
3712843a78 Use ActivityCompat.recreate(). 2020-12-15 13:55:05 +05:30
Isira Seneviratne
bc68d6f95f Use ContextCompat.getDataDir(). 2020-12-15 08:02:25 +05:30
XiangRongLin
dc7f2bf894 Extract export database logic into own class
- Separate it from the UI.
- Add happy path unit test.
2020-12-04 18:30:29 +01:00
Stypox
34dd7c0fbf Update most dependencies 2020-11-22 14:03:10 +01:00
Isira Seneviratne
a2500345d6 Use try-with-resources. 2020-11-21 13:47:13 +05:30
Isira Seneviratne
39a008db6e Convert ErrorInfo to Kotlin and use the Parcelize annotation. 2020-11-21 12:47:35 +05:30
TacoTheDank
290751ba78 Correct some other small lints 2020-11-19 18:54:27 -05:00
TacoTheDank
497e145c70 Lint: Make a bunch of stuff final 2020-11-18 17:50:00 -05:00
Stypox
073999edcc Merge pull request #4771 from Stypox/fix-playlist-select
Fix playlist select dialog and do some refactoring
2020-11-14 11:21:20 +01:00
Isira Seneviratne
82ba67ca82 Use RxJava instead of AsyncTask to check for new app versions. 2020-11-05 11:06:50 +05:30
Stypox
aae526074c Fix playlist select dialog and do some refactoring 2020-11-02 14:24:39 +01:00
Xiang Rong Lin
e51a6cdb97 Add option to not colorize notification 2020-11-01 22:13:00 +01:00
XiangRongLin
e52df544c6 Convert notification actions to a custom preference (#4652) 2020-10-31 11:58:33 +01:00
Isira Seneviratne
cd12b9add1 Use DrawableCompat. 2020-10-25 21:01:53 +05:30
Isira Seneviratne
0e2f57bc60 Use TextViewCompat.setCompoundDrawablesRelativeWithIntrinsicBounds(). 2020-10-22 06:01:49 +05:30
wb9688
20ba845af7 Add button in settings to clear reCAPTCHA cookies 2020-10-14 14:39:08 +02:00
Stypox
545338388c Merge pull request #4413 from Stypox/delete-stream-state
Also delete stream state when deleting stream history
2020-10-10 22:29:33 +02:00
wb9688
53547e76e5 Fix compiling release build 2020-10-08 18:36:20 +02:00
wb9688
a075111bb1 Hide Leaks launcher icon 2020-10-07 12:56:22 +02:00
Stypox
b78d152e22 Also delete stream state when deleting stream history 2020-10-05 17:47:48 +02:00
Tobias Groza
bccba7acd6 Merge pull request #4259 from TeamNewPipe/pref_migration
Add settings migration, remove "Detail page" option from share dialog and minimize to background by default
2020-09-27 11:20:39 +02:00
TobiGr
0246f8de31 Set default value for "minimize_on_exit" to background for better UX. 2020-09-26 21:58:38 +02:00
TobiGr
0949453cb5 Remove "Detail Page" open action from share dialog under certain circumstances
With the new application workflow and unified player, video detail page and video player are the same activity. So show only one of these options based on whether autoplay is enabled or not, and show both if using external player
2020-09-26 21:58:34 +02:00
TobiGr
6f9b03ac11 Add migration concept for shared preferences 2020-09-26 21:43:58 +02:00
Stypox
7016da5251 Remove hardcoded and duplicate strings, use exoplayer ones 2020-09-22 18:17:09 +02:00
Stypox
e861be10d9 Merge branch 'dev' into pr3178 2020-09-08 23:58:10 +02:00
Stypox
847fb84854 Add notification costumization settings menu 2020-09-08 22:00:24 +02:00
Stypox
044190d5d9 Extract duplicate setActivityTitle code to own function 2020-09-07 15:28:38 +02:00
TacoTheDank
0ef2e07cf4 Some general-purpose lint cleanup 2020-09-06 12:55:26 +02:00
TacoTheDank
7795a5f733 Fix some lambdas 2020-09-06 12:52:43 +02:00
TacoTheDank
61c10ad427 Use AndroidX preference 2020-09-06 12:52:42 +02:00
TobiGr
a0498c4c62 Remove unused and redundant code. 2020-09-01 17:39:06 +02:00
wb9688
25b56bf5e4 Use final where possible 2020-08-16 10:25:09 +02:00
Avently
5cd7ca5dab AndroidTvUtils -> DeviceUtils 2020-07-21 01:43:49 +03:00
Stypox
89899dc1c9 Move local/remote playlist merge() to PlaylistLocalItem class
In order not to have a utils class just for one function
2020-07-04 11:38:22 +02:00
Stypox
8736a1c072 Fix style issues 2020-07-04 11:38:22 +02:00
Roy Yosef
820ab5893c Final declarations, naming & redundant code
* add final declarations where missing
* fix typo "onSelectedLisener" to "onSelectedListener"
* rename "baseEqual" to "baseEquals"
* replace getPlaylistsObserver code with functions pointers
* remove duplicate code in constructors
* remove useless null checks
2020-07-04 11:37:38 +02:00
Roy Yosef
37dd391807 Add playlist tab to main page
Add bookmarked playlist as tab in the main page (by Settings > Content > Content of main page)
2020-07-04 11:35:45 +02:00
Stypox
d63b091ec0 Fix checkstyle issues
Also replace all tabs with 4 spaces
2020-05-21 15:39:36 +02:00