Merge lp:~dano6/podbird/podbird into lp:podbird

Proposed by Daniel Kutka
Status: Merged
Approved by: Michael Sheldon
Approved revision: no longer in the source branch.
Merged at revision: 217
Proposed branch: lp:~dano6/podbird/podbird
Merge into: lp:podbird
Diff against target: 54 lines (+2/-19)
2 files modified
app/podbird.qml (+1/-18)
app/ui/SearchPage.qml (+1/-1)
To merge this branch: bzr merge lp:~dano6/podbird/podbird
Reviewer Review Type Date Requested Status
Michael Sheldon Approve
Review via email: mp+402831@code.launchpad.net

Commit message

Fix performance issues

Description of the change

Based on feedback from https://forums.ubports.com/topic/4299/podbird-reignited/96 and Telegram group there is a regression on low end phones using QT 5.12, when ActivityIndicator was causing performance issues, despite not being visible (property running and visible was true). This indicator is not much necassary, it was visible only before adding a first podcast.

To post a comment you must log in.
Revision history for this message
Michael Sheldon (michael-sheldon) wrote :

Looks good, thanks!

review: Approve
lp:~dano6/podbird/podbird updated
217. By Michael Sheldon

Merge from lp:~dano6/podbird/podbird

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'app/podbird.qml'
--- app/podbird.qml 2021-01-12 21:16:11 +0000
+++ app/podbird.qml 2021-05-17 14:58:46 +0000
@@ -25,6 +25,7 @@
25import QtQuick.LocalStorage 2.025import QtQuick.LocalStorage 2.0
26import Ubuntu.DownloadManager 1.226import Ubuntu.DownloadManager 1.2
27import QtSystemInfo 5.527import QtSystemInfo 5.5
28import Ubuntu.Content 1.3
28import "ui"29import "ui"
29import "themes" as Themes30import "themes" as Themes
30import "podcasts.js" as Podcasts31import "podcasts.js" as Podcasts
@@ -70,7 +71,6 @@
70 episodesUpdating = true;71 episodesUpdating = true;
71 Podcasts.updateEpisodes(refreshModels)72 Podcasts.updateEpisodes(refreshModels)
72 }73 }
73 loadingIndicator.opacity = 0
74 // Only perform cleanup of old episodes once a day74 // Only perform cleanup of old episodes once a day
75 if (Math.floor((today - settings.lastCheck)/86400000) >= 1 && settings.retentionDays !== -1) {75 if (Math.floor((today - settings.lastCheck)/86400000) >= 1 && settings.retentionDays !== -1) {
76 Podcasts.cleanUp(today, settings.retentionDays)76 Podcasts.cleanUp(today, settings.retentionDays)
@@ -529,21 +529,4 @@
529 }529 }
530 ]530 ]
531 }531 }
532
533 Rectangle {
534 id: loadingIndicator
535 color: podbird.appTheme.background
536 anchors.fill: parent
537
538 ActivityIndicator {
539 anchors.centerIn: parent
540 running: true
541 }
542
543 Behavior on opacity {
544 UbuntuNumberAnimation {
545 }
546 }
547 }
548
549}532}
550533
=== modified file 'app/ui/SearchPage.qml'
--- app/ui/SearchPage.qml 2020-07-07 15:59:00 +0000
+++ app/ui/SearchPage.qml 2021-05-17 14:58:46 +0000
@@ -500,7 +500,7 @@
500 text: i18n.tr("Importing podcasts...")500 text: i18n.tr("Importing podcasts...")
501501
502 ActivityIndicator {502 ActivityIndicator {
503 running: true503 running: parent.visible
504 }504 }
505505
506 ProgressBar {506 ProgressBar {

Subscribers

People subscribed via source and target branches

to status/vote changes: