681 Commits

Author SHA1 Message Date
Bart De Vries
4d6d8ae940 Add basic logging capabilities on android.
This implements debug logging which can be checked through logcat.
2021-06-19 00:26:24 +02:00
Bart De Vries
0c7e5ca63b Do not try to read enclosure length on entries that don't have an enclosure 2021-06-16 09:25:52 +02:00
Bart De Vries
048f294b2b Fix inhibit suspend on Gnome
The inhibit dbus call to gnome sessionmanager expects flags as input.
Currently the flags are set to 4, which will "Inhibit the session being
marked as idle". This is insufficient to prevent the device from
suspending while playing.
We should also add 8 = "Inhibit suspending the session or computer".
Hence, the updated flags to 12.

This change was tested on phosh/phoc and it properly prevents the
system from suspending.  The flags = 12 settings is also what gnome
music players like Lollypop are using (as checked through the gnome
sessionmanager dbus interface).
2021-06-15 13:03:41 +02:00
Bart De Vries
26d3755922 Use debug categories in fetcher.cpp for partial downloads 2021-06-11 20:30:15 +02:00
Bart De Vries
1f35c0a25c Don't clean up partial downloads, such that they can be resumed 2021-06-11 16:59:03 +02:00
Bart De Vries
a24fb7d731 Get correct enclosure file size as soon as possible when download starts 2021-06-11 16:59:03 +02:00
Bart De Vries
d24b7ed7d0 Write downloads to disk and enable download resume
This enables the download method in Fetcher to resume in case a partial
download is already saved to disk.
For full implementation of download resumes, more changes are required,
because the current application will automatically clean up files that
don't match the expected size at startup.
2021-06-11 16:59:03 +02:00
Bart De Vries
6d57a0586b Explicitly set logo for about page to logo.sv resource file 2021-06-08 15:44:44 +02:00
Bart De Vries
0b8c1856c9 Mark episode as unread when adding to queue 2021-06-08 14:19:50 +02:00
Bart De Vries
4187e05310 Remove filter for <li> and <ul> tags in entry content 2021-06-08 13:33:09 +02:00
Tobias Fella
6a95dfe4ed Try fixing logo not visible in AboutPage on android 2021-06-08 00:48:34 +02:00
Swapnil Tripathi
20c10d9380 Small Fix. 2021-06-08 02:52:11 +05:30
Bart De Vries
2ed33aa750 Add debugging logging categories 2021-06-05 22:03:22 +02:00
Bart De Vries
8437a44a7b Remove obsolete timeString method 2021-06-05 11:59:57 +02:00
Bart De Vries
e311a1d1d4 Avoid resizing or re-coloring globaldrawer on mobile 2021-06-04 14:02:28 +02:00
Bart De Vries
05859cdca0 Add missing icon for android build 2021-06-04 09:05:44 +02:00
Swapnil Tripathi
0fd2fca1f1 Updated minimum height and width 2021-06-04 01:30:28 +05:30
Tobias Fella
3f1f3045ec Port away from KDeclarative 2021-06-03 16:23:06 +02:00
Swapnil Tripathi
2145c58333 Added minimum width and height 2021-06-03 15:13:38 +05:30
Swapnil Tripathi
5dc33049de Fix heading text elide. 2021-06-02 21:28:59 +00:00
Bart De Vries
a565f6eec1 Disable text wrapping in HeaderBar to avoid nasty binding loops 2021-06-02 22:21:39 +02:00
Mathis Brüchert
f49ace47e3 change the sidebar to the normal page background color for contrast reasons 2021-06-02 22:13:54 +02:00
Bart De Vries
974a078e5f Set separate bottom spacing for update and error overlay messages 2021-06-02 22:05:24 +02:00
Bart De Vries
121b4b4d08 Make HeaderBar fixed height instead of a fraction of the window height 2021-06-02 22:05:24 +02:00
Swapnil Tripathi
46568fa131 Set title to a max of 2 lines. 2021-06-02 20:00:18 +00:00
Swapnil Tripathi
617a85925c Added duration labels, fixed header background color and other small fixes. 2021-06-02 20:00:18 +00:00
Swapnil Tripathi
4f02d8676f Desktop mode updated 2021-06-02 20:00:18 +00:00
Swapnil Tripathi
44bb387b54 Added Header Bar 2021-06-02 20:00:18 +00:00
Bart De Vries
7a19e8f288 Fix fallback image if dark theme is used
When using a dark theme, the RSS icon will appear in (nearly) white on a
white background.  Let's fix the icon colour to black to always get the
same fallback image.
2021-06-02 20:49:15 +02:00
Bart De Vries
b48270a637 Replace grayed out episode colours by "played" label on delegate 2021-06-01 20:27:43 +02:00
Bart De Vries
9c2d6ecdc0 Align copyright headers with other files in Kasts 2021-06-01 16:47:21 +02:00
Bart De Vries
e81b62839a Fix app-crashing binding loop in FeedListPage
The binding loop occured whenever the vertical scrollbar appears or
disappears.  The GUI then gets stuck between solutions: one with a
certain amount of columns and another with one column less or more.  It
then keeps alternating between these two until the app freezes the
machine and eventually crashes.
The fix is to calculate the number of columns based on the total width
of the Page itself, rather than the width of the content.  By
subtracting enough space for the scrollbar, the cards on the page will
now rescale smoothly and properly.
2021-06-01 16:22:03 +02:00
Bart De Vries
4ecbc0597a Switch to introspection dbus interface and add licenses 2021-05-31 20:50:00 +02:00
Bart De Vries
8c620e63ac Remove unnecessary QtMultimedia imports 2021-05-31 11:42:11 +02:00
Bart De Vries
eec54d3095 Move feed update action to header on desktop
The refresh buttons currently show up as main action buttons at the
bottom on desktop since they are placed inside SwipeViews/tabs.  Move
these actions to the hierarchical parent ScrollablePages so they end up
in the header bar.
2021-05-31 11:32:46 +02:00
Swapnil Tripathi
ea9074ac22 Update EpisodeListPage.qml 2021-05-30 18:25:21 +00:00
Bart De Vries
9d78b5b488 Run clang-format 2021-05-28 23:16:35 +02:00
Bart De Vries
3983e09634 Use qCDebug in AudioManager 2021-05-28 22:55:18 +02:00
Bart De Vries
28b461da07 Consistently capitalize i18n strings 2021-05-28 22:16:14 +02:00
Bart De Vries
9ae93dd064 Properly implement MPRIS Raise() method 2021-05-28 21:51:51 +02:00
Bart De Vries
b776dd22cb Contextualize singleShots 2021-05-28 16:54:00 +02:00
Bart De Vries
858601aec3 Change from old style connects to function pointers 2021-05-28 16:49:55 +02:00
Bart De Vries
4d4859a698 Replace AudioManager::timeString by KFormat::formatDuration 2021-05-28 16:42:12 +02:00
Bart De Vries
13b59adb29 Move author into i18nc call 2021-05-28 16:21:47 +02:00
Bart De Vries
d45eebf43a Do not push Settings and About to layers stack 2021-05-27 23:29:14 +02:00
Bart De Vries
df6a15b160 Remove unused m_audio private member in queuemodel.h 2021-05-27 22:57:08 +02:00
Bart De Vries
370b023a3b Change CMake targets from Qt5::x to Qt::x 2021-05-27 22:46:24 +02:00
Yuri Chornoivan
46916ac2d9 Add i18n() 2021-05-27 18:42:52 +03:00
Mathis Brüchert
afce79ce87 make the sidebar less wide 2021-05-27 17:00:56 +02:00
Bart De Vries
e78965051c Revert the dependence on wideScreen to avoid app-crashing binding loops 2021-05-27 16:56:15 +02:00