Commit graph

85 commits

Author SHA1 Message Date
Stypox
8b8e9f5fc4 Merge pull request #6313 from Isira-Seneviratne/Update_Room_to_2.3.0
Update Room to 2.3.0.
2021-06-09 16:28:55 +02:00
Stypox
ac8cd98457 Merge pull request #5462 from Isira-Seneviratne/Convert_abstract_classes_to_interfaces
Convert the abstract class DAOs to interfaces.
2021-06-08 11:32:10 +02:00
Isira Seneviratne
31eb99034f Convert Converters to a Kotlin object. 2021-05-16 11:14:15 +05:30
Isira Seneviratne
0755c854db Rename .java to .kt 2021-05-16 11:14:15 +05:30
Stypox
9dc583da87 Optimize imports and solve checkstyle issues 2021-03-12 23:21:53 +01:00
Isira Seneviratne
a5402c13ff Convert the abstract class DAOs to interfaces. 2021-01-20 06:29:50 +05:30
hlloreda
ae03327f4c [FIX] - Use of a Data class instead of overriding equals method 2020-12-07 10:53:33 +01:00
hlloreda
2d86452c5d [IMPORT] - import got deleted 2020-12-07 00:06:56 +01:00
hlloreda
c00b667347 [FIX] - Crash while deleting a video from a playlist while refreshing 2020-12-06 23:40:38 +01:00
TobiGr
a9f1c232d7 Add missing import for @throws annotation 2020-11-28 12:53:22 +01:00
Stypox
57c28a9a9c Fix ktlint errors 2020-11-22 14:03:10 +01:00
Stypox
34dd7c0fbf Update most dependencies 2020-11-22 14:03:10 +01:00
vkay94
8f8cfc2f7e Add progressTime field to some stream entries (database) 2020-11-15 14:08:41 +01:00
Isira Seneviratne
a7e248d12b Switch to the Java 8 Date/Time API. 2020-11-05 15:02:51 +05:30
Isira Seneviratne
bda8caa510 Use Comparator's comparing(), nullsLast() and reversed() methods. 2020-11-01 14:44:04 +05:30
vkay94
0f720b6e97 Fix PlaylistAppendDialog showing when no local playlists exist 2020-10-23 09:44:26 +02:00
TacoTheDank
0e33cc5d73 Fix some deprecations 2020-09-06 12:52:43 +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
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
Mauricio Colli
331ce24540 Add filter to the feed group dialog to show only ungrouped subscriptions 2020-06-27 11:58:40 -03:00
Mauricio Colli
5c57c1d500 Fix subscription picker items flickering in the feed group dialog
The adapter could not tell the items were the same because the
subscription class was missing some methods (i.e. equals and hashcode),
so a full rebind was being done.
2020-06-27 11:25:31 -03:00
Mauricio Colli
77439f720c Add search for subscription picker in the feed group dialog 2020-06-27 11:25:25 -03:00
wb9688
d770cf5657 Auto-format using Ktlint 2020-05-01 20:13:21 +02:00
wb9688
205c5ff2ca Optimize imports 2020-05-01 20:13:01 +02:00
Grady Clark
e28d827df5 Merge branch 'dev' of https://github.com/TeamNewPipe/NewPipe into dev 2020-04-14 13:24:57 -05:00
Mauricio Colli
17b4a97a3c Avoid unnecessary changes to the upload date of saved streams
The upload date was being updated regardless if the new one had more
precision or not, this caused items on the feed to jump around when the
user opened one of them.

This changes it to only update when the existent upload date is null or
the new one has a higher precision (i.e. is not an approximation).
2020-04-05 10:57:54 -03:00
Stypox
5df946dd2b Use binary search to remove watched items from playlists 2020-04-03 19:51:29 +02:00
wb9688
ac264464ef Improve code style to be more consistent 2020-04-02 15:57:50 +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
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
ff298dfbeb Replace hardcoded value that represents the group "All" with a constant 2020-03-14 00:12:41 -03:00
Mauricio Colli
6e6a1752d6 Load only the selected group and customizable updated status timeout
Now only the subscriptions from the selected group by the user will be
loaded.

Also add an option to decide how much time have to pass since the last
refresh before the subscription is deemed as not up to date. This helps
when a subscription appear in multiple groups, since updating in one
will not require to be fetched again in the others.
2020-03-14 00:12:38 -03:00
Mauricio Colli
ee00c8c26f Implement new feed and subscriptions groups
- Introduce Groupie for easier lists implementations
- Use some of the new components of the Android Architecture libraries
- Add a bunch of icons for groups, using vectors, which still is
compatible with older APIs through the compatibility layer
2020-03-14 00:12:31 -03:00
Mauricio Colli
c1765bf035 Setup initial database for feed implementation
- Update the database diagram
- Add new migration for the new tables and fields
- Enable schema exports
2020-03-14 00:12:30 -03:00
Peter Hindes
72aab82d95 Fixed library showing null 2019-10-16 19:56:31 -06:00
Peter Hindes
218a19744c only use TextUtils.equals (fixes more crashes) 2019-10-15 17:22:17 -06:00
Peter Hindes
44d452c48b Comment out debuging code 2019-10-15 14:02:37 -06:00
Peter Hindes
ae0b932d6f Much Simpler Fix 2019-10-15 09:11:04 -06:00
Peter Hindes
e5024740ad follow stye on debug 2019-10-15 08:48:36 -06:00
Peter Hindes
b63b608462 Polished Results 2019-10-15 08:40:51 -06:00
Peter Hindes
9a82232090 Better FIx, Improved Comment Style 2019-10-15 07:19:11 -06:00
Peter Hindes
81218f11ac Wrap in multiline comment so it colapses 2019-10-14 16:55:16 -06:00
Peter Hindes
9b8a042a2f Explain What we did in the code itself 2019-10-14 16:48:44 -06:00
Peter Hindes
6abc9be6be much simpler, "uploader" will never change on a playlist 2019-10-14 14:56:04 -06:00
Peter Hindes
5b6af31742 Fixed Playlists With No Uploader Crashing The App 2019-10-14 11:55:55 -06:00
Robin
edd5ad2d13 Migrate to AndroidX 2019-10-04 14:59:08 +02:00
Christian Schabesberger
5c97131362 fix import settings not working 2019-08-04 17:27:56 +02:00
Vasiliy
0b8277fe44 Update states in lists 2019-04-27 18:12:00 +03:00