App preview buttons appear before they can be clicked

Bug #1423050 reported by Leo Arias
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
Undecided
Unassigned
unity-scope-click (Ubuntu)
Invalid
Undecided
Unassigned
unity-scopes-shell (Ubuntu)
Incomplete
Undecided
Unassigned
unity8 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

When I open the preview of an installed application, it shows the uninstall and close buttons. If I click them while the bottom loading bar is still moving, they will do nothing.

To reproduce:
Do a long touch in an app, for example, file manager
As soon as the buttons appear, touch one of them.
If you are fast and your connection is slow, then you will click the button before the images are fully loaded, so the progress bar will still be moving.
And nothing will happen.

Tested on krillin, vivid, r114

I think there should be a clear indication that the buttons are disabled while the preview is being loaded. Or maybe it doesn't matter that the images are not loaded, the buttons should be clickable as soon as they appear.

Tags: vivid
dobey (dobey)
affects: unity-scope-click (Ubuntu) → unity8 (Ubuntu)
Revision history for this message
Michał Sawicz (saviq) wrote :

FWIW we did that to prevent multi-clicks on the installation page when people waited for the scope to react. Some exploration to be made there.

Revision history for this message
Albert Astals Cid (aacid) wrote :

It's actually not the images that we're waiting for, we are waiting for the previewModel.loaded property (which is linked to the orange bar in the bottom) to be true to enable the buttons, i'd agree that it seems that the property changes to true a bit too late, maybe it's still loading comments or something?

I'm readding unity-scope-click and unity-scopes-shell for comments

Revision history for this message
dobey (dobey) wrote :

Albert, it could be a little slow loading the data from the network (it's got to get a few pieces of data from a few different hosts, which makes things slower). AFAIK, the orange bar is tied to the Result in the scopes API, and we keep it around until we've gotten all the data we need to, and pushed it to the preview. If we don't, stuff will just get dropped. I don't think there's anything directly in the scope we could really change immediately to help with that.

kevin gunn (kgunn72)
tags: added: vivid
kevin gunn (kgunn72)
tags: added: vivid-stab-candidate
kevin gunn (kgunn72)
tags: removed: vivid-stab-candidate
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

I can always open the app as soon as the button appears even if the progress bar is still there

Changed in canonical-devices-system-image:
status: New → Incomplete
Revision history for this message
Paweł Stołowski (stolowski) wrote :

I cannot reproduce it either, apps can be opened immediately when the button appears.

Changed in unity-scope-click (Ubuntu):
status: New → Invalid
Changed in unity-scopes-shell (Ubuntu):
status: New → Incomplete
Changed in unity8 (Ubuntu):
status: New → Incomplete
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

closing since it cannot be reproduced according to the 2 last comments.

Changed in canonical-devices-system-image:
status: Incomplete → Fix Released
Changed in unity8 (Ubuntu):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.