Last modified: 2012-02-24 02:52:41 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T33483, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 31483 - Android app doesn't show a spinner or progress bar on most page loads
Android app doesn't show a spinner or progress bar on most page loads
Status: RESOLVED FIXED
Product: Wikipedia App
Classification: Unclassified
Generic (Other open bugs)
1.0.0 (Android)
All All
: Normal normal
: ---
Assigned To: Yuvi Panda
:
: 31952 (view as bug list)
Depends on:
Blocks: 31447 32139
  Show dependency treegraph
 
Reported: 2011-10-07 02:48 UTC by Brion Vibber
Modified: 2012-02-24 02:52 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: Android
Assignee Huggle Beta Tester: ---


Attachments

Description Brion Vibber 2011-10-07 02:48:47 UTC
There seems to be a modal spinner shown on the initial 'main page' load and when submitting searches, but no spinner at all on page-to-page navigation.

Modal spinners should be avoided if possible; better to show something inline that leaves the UI active and has a way to cancel it.
Comment 1 Brion Vibber 2011-10-10 17:57:19 UTC
Need to trap navigation events within the iframe.
Comment 2 Yohei Shimomae 2011-10-24 20:21:08 UTC
https://github.com/nitobi/Wikipedia/tree/2774232d55c2ade7d80e04ae268ede3f1e95c1e2

Added the UI component for this. Use showSpinner() / hideSpinner() to bring it up.
Comment 3 Brion Vibber 2011-10-24 20:22:08 UTC
This looks like a plain animated GIF, which doesn't work on all Android builds: http://code.google.com/p/android/issues/detail?id=3422

Will this reliably work or do we need to do a sprite-style image that animates with a timeout or something?
Comment 4 Tomasz Finc 2011-10-26 08:30:08 UTC
*** Bug 31952 has been marked as a duplicate of this bug. ***
Comment 5 herman wong 2011-10-27 22:35:38 UTC
added spinner animation

https://github.com/nitobi/Wikipedia/commit/8c53605c20fcd65694c5612b3b69704cee9d29c3

currently it only activates on initial load of the app, search, navigating to search results / bookmarks / history items.
Comment 6 herman wong 2011-10-27 22:43:00 UTC
Initially thought we could use this Android API to capture link clicks in the iframe:

http://developer.android.com/reference/android/webkit/WebViewClient.html#onPageStarted%28android.webkit.WebView,%20java.lang.String,%20android.graphics.Bitmap%29

but it looks like it only works for the main frame and not the iframe.
Comment 7 Anis Kadri 2011-10-28 21:23:11 UTC
this should fix it. let me know if it doesn't

https://github.com/nitobi/Wikipedia/commit/4169c622bdb2aceee8fc68cd2ebb36270a3beed9
Comment 8 herman wong 2011-10-28 21:25:45 UTC
seems to work for me.

tested on Android 2.3.6 Nexus S.
Comment 9 Brion Vibber 2011-10-30 21:32:19 UTC
On my Nexus 1 w/ Android 2.3.6 I see a spinner when submitting a query from search results, but not during page loads in regular navigation (the subject of this bug).

Reopening.
Comment 10 Brion Vibber 2011-10-31 01:57:40 UTC
Ok, can confirm it *is* showing the spinner on regular navigation as of my current working state: https://github.com/nitobi/Wikipedia/commit/8c9753968321723e9074cbfbc2d99115c6016d18

Must have been one of those "Eclipse doesn't see your new files" things. ;)
Comment 11 Yuvi Panda 2011-12-15 22:50:36 UTC
It exists, but doesn't actually seem to spin - is just 'stuck' in one position during the entire duration of the load.
Comment 12 Brion Vibber 2011-12-16 18:48:41 UTC
I've broken out the 'doesn't spin on all devices due to limited animated GIF support' issue to bug 33198; reclosing this one.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links