Commit graph

1696 commits

Author SHA1 Message Date
Grady Clark
b85ef0e0a7 Changed "Remove Watched":
- Will now execute on the io thread
- Added confirmation dialog
  - Warning the user, and asking if they also want to remove partially watched videos
2020-04-14 13:15:07 -05:00
Stypox
deb8e6ee86 Check if already running before removing watched 2020-04-03 20:41:21 +02:00
Stypox
63127bd6e3 Fix checkstyle errors 2020-04-03 20:13:56 +02:00
Stypox
5df946dd2b Use binary search to remove watched items from playlists 2020-04-03 19:51:29 +02:00
developer
f341f89cc8 Optimised 'removeWatchedStreams'
Removed merge mistake
Reordered code
Refactored 'removeWatchedWorker' to 'removeWatchedDisposable'
2020-04-03 19:50:12 +02:00
Grady Clark
1710fe2d24 Simplified the removal of watched videos, into the function removeWatchedStreams
Replaced unnecessary nested class.
Fixed formating issues
2020-04-03 19:49:41 +02:00
Grady Clark
1919336838 - Will now use ReactiveX instead of AsyncTask, when removing watched videos.
- Removed redundant file 'local_playlist_control'
- Fixed grammer issue
2020-04-03 19:49:41 +02:00
Grady Clark
670483997f Moved the 'Remove Watched' button to the three dot menu button. 2020-04-03 19:49:01 +02:00
Grady Clark
559fe4feb1 Added the ability to remove all watched videos from local playlists
Changes:
 - local_playlist_control.xml
   * A copy of playlist_control.xml
   * To hold the 'Remove Watched Videos' buttton

 - local_playlist_header.xml
   * Changed the include layout	to now include local_playlist_control.xml

 - strings.xml
   * added string 'remove_watched' with value 'Remove Watched'

 - LocalPlaylistFragment.java
   * Added the functionality to remove watched videos,
      to the 'Remove Watched Videos' button in local_playlist_control.xml.
      In the background via AsyncTask.
      This will also change the playlist's thumbnail, if the thumbnail video is removed.

Tested on:
 - Pixel
2020-04-03 19:47:31 +02:00
wb9688
8b2bc17723 Revert some more changes 2020-04-03 15:48:38 +02:00
wb9688
4b196c6a8c Use Checkstyle for org.schabi.newpipe.streams as well 2020-04-02 16:48:57 +02:00
wb9688
9c8349a8ed Move things back to its original place 2020-04-02 15:57:50 +02:00
wb9688
ac264464ef Improve code style to be more consistent 2020-04-02 15:57:50 +02:00
kapodamy
43a95447f8 fix integer overflows
* available() method in ChunkFileInputStream.java
* free "ahead space" calculation in CircularFileWriter.java
2020-04-01 15:30:33 -03:00
kapodamy
4c806c8ab9 code cleanup 2020-04-01 15:30:32 -03:00
Tobias Groza
6133922cd3 Merge pull request #3259 from mauriciocolli/improve-drawer-layout
Improvements for the drawer header layout
2020-04-01 18:47:53 +02:00
Stypox
459a68210e Fix mute button causing crashes on API 19
Using rootView.getContext() because getApplicationContext() didn't work (it was probably missing information about theme)
2020-04-01 09:08:03 +02:00
TobiGr
4cf3a923fd Merge branch 'master' into dev 2020-03-31 12:33:16 +02:00
TobiGr
3e37be8543 Improve database migration SQL statement 2020-03-31 00:20:13 +02:00
Mauricio Colli
a9a64634a9 Fix handling of null values in database migration to version 3
Some values prior to this version could be null, this wasn't handled
properly before.
2020-03-30 15:50:46 -03:00
Tobias Groza
85316a6405 Merge pull request #3289 from B0pol/grid_moreinfo
add upload date on stream grid items
2020-03-29 23:49:39 +02:00
Tobias Groza
f006b9a2ba Merge pull request #3279 from mauriciocolli/fix-not-found-handling
Handle content not available exception more comprehensively
2020-03-28 19:10:43 +01:00
Mauricio Colli
5b8eef2ff1 Handle content not available exception more comprehensively 2020-03-28 14:54:52 -03:00
Tobias Groza
4214d617d3 Merge pull request #3283 from Stypox/fix-mute-button
Fix mute button inflation problems on API<21
2020-03-28 18:38:36 +01:00
Mauricio Colli
143656ecf4 Use correct class for getting a vector drawable in older APIs 2020-03-28 14:30:47 -03:00
Mauricio Colli
574ad87128 Fix bug when searching for urls from shared content 2020-03-28 14:06:11 -03:00
Mauricio Colli
561a2c58a2 Introduce a proper way to find urls in a string input 2020-03-28 14:06:09 -03:00
bopol
49259455f9 add upload date on stream grid items
fixes #3175
2020-03-28 14:19:57 +01:00
Mauricio Colli
2243d21605 Temporary: Fix menu visibility when restoring state in the pager adapter
When restoring the state of the adapter, all the fragments' menu
visibility were set to false, effectively disabling the menu from the
user until he switched pages or another event that triggered the menu to
be visible again happened.

FragmentStatePagerAdapter is deprecated and should be replaced with its
ViewPager2 counterpart, until then, this should do it.
2020-03-27 11:30:38 -03:00
Mauricio Colli
1033192755 Align and enable autosizing for the app name text view in drawer header
- Use a proper drop up/down arrow icon.
- Move selected service views for better visibility.
- Show the selected service icon next to its name.
- Add a subtle fade background to the service name/icon for better
readability.
2020-03-26 19:21:30 -03:00
TobiGr
fb75afc99f Seek duration should not be rounded up when opening the settings, even if inexact seek is disabled 2020-03-25 22:34:02 +01:00
kapodamy
c19447b559 fix integer overflow 2020-03-25 16:13:36 -03:00
Tobias Groza
8a3abf9444 Merge pull request #3252 from B0pol/mute_button
Change mute button color for more visibility
2020-03-23 23:10:48 +01:00
bopol
9bf584bb3f remove unused imports 2020-03-21 21:54:40 +01:00
bopol
837264767f mute button color for queue 2020-03-21 21:51:11 +01:00
bopol
b7c986b40b Change mute button color for more visibility 2020-03-21 16:58:53 +01:00
Tobias Groza
f719840ae7 Merge pull request #3220 from kapodamy/webm-seek-fix
fix for #3204
2020-03-20 11:49:39 +01:00
Mauricio Colli
5ac62b9bdb Make duration plurals naming consistent 2020-03-19 09:44:13 -03:00
bopol
570f56de57 use val instead of val, make sentence more natural 2020-03-19 09:44:12 -03:00
bopol
4207fcbba9 use plural string for feed_group_dialog_selection_count 2020-03-19 09:44:11 -03:00
bopol
9657bee14d delete «seconds» plural string in favor of «dynamic_seek_duration_description» to avoid weblate conflicts 2020-03-19 09:44:10 -03:00
Mauricio Colli
b57e949179 Add help dialog to feed screen
Help to a possible confusion or simply awareness that NewPipe has both
ways to load the feed.
2020-03-14 13:24:25 -03:00
Mauricio Colli
229ad77800 Localize duration strings used in feed settings using plurals 2020-03-14 00:12:53 -03:00
Mauricio Colli
8f7695393e Detect if the subscription list should be shown as a grid
Also used proper string keys for the preferences, left a TODO to fix it
in other places later.
2020-03-14 00:12:52 -03:00
Mauricio Colli
9916955663 Simplify screen handling in feed group dialog 2020-03-14 00:12:51 -03:00
Mauricio Colli
af0218072b Add a confirmation dialog when deleting a feed group 2020-03-14 00:12:50 -03:00
Mauricio Colli
e3576fbf20 Don't expose MutableLiveData in view models 2020-03-14 00:12:48 -03:00
Mauricio Colli
db61021aff Disable buttons when processing actions in the feed dialogs 2020-03-14 00:12:47 -03:00
Mauricio Colli
7aecb00211 Implement feed groups manual sorting
Now, the user can sort its groups to his liking even after he created
them.

Also updated the database diagram to reflect the table's new column.
2020-03-14 00:12:45 -03:00
Mauricio Colli
eb8b394d96 Add ability to cancel a feed update through a notification action
- Change prefetch value default so each parallel rail buffers less
items.
2020-03-14 00:12:44 -03:00