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
1=== modified file 'app/podbird.qml'
2--- app/podbird.qml 2021-01-12 21:16:11 +0000
3+++ app/podbird.qml 2021-05-17 14:58:46 +0000
4@@ -25,6 +25,7 @@
5 import QtQuick.LocalStorage 2.0
6 import Ubuntu.DownloadManager 1.2
7 import QtSystemInfo 5.5
8+import Ubuntu.Content 1.3
9 import "ui"
10 import "themes" as Themes
11 import "podcasts.js" as Podcasts
12@@ -70,7 +71,6 @@
13 episodesUpdating = true;
14 Podcasts.updateEpisodes(refreshModels)
15 }
16- loadingIndicator.opacity = 0
17 // Only perform cleanup of old episodes once a day
18 if (Math.floor((today - settings.lastCheck)/86400000) >= 1 && settings.retentionDays !== -1) {
19 Podcasts.cleanUp(today, settings.retentionDays)
20@@ -529,21 +529,4 @@
21 }
22 ]
23 }
24-
25- Rectangle {
26- id: loadingIndicator
27- color: podbird.appTheme.background
28- anchors.fill: parent
29-
30- ActivityIndicator {
31- anchors.centerIn: parent
32- running: true
33- }
34-
35- Behavior on opacity {
36- UbuntuNumberAnimation {
37- }
38- }
39- }
40-
41 }
42
43=== modified file 'app/ui/SearchPage.qml'
44--- app/ui/SearchPage.qml 2020-07-07 15:59:00 +0000
45+++ app/ui/SearchPage.qml 2021-05-17 14:58:46 +0000
46@@ -500,7 +500,7 @@
47 text: i18n.tr("Importing podcasts...")
48
49 ActivityIndicator {
50- running: true
51+ running: parent.visible
52 }
53
54 ProgressBar {

Subscribers

People subscribed via source and target branches

to status/vote changes: