pkpio / MDroid

Moodle for Android
https://play.google.com/store/apps/details?id=in.co.praveenkumar
GNU General Public License v3.0
36 stars 47 forks source link

Sql queries on UI thread #22

Closed pkpio closed 9 years ago

pkpio commented 10 years ago

Although one or two queries is fine, the app is currently making all the sql queries to show the initial offline data on UI thread. No significant lag or freeze has been noticed but it would be a welcome change to do the initial offline data queries also on the SyncThread of the respective fragment (every fragment has it) and do a progress update.

pkpio commented 9 years ago

Shifting this to Async task with onProgressUpdate is resulting in larger delay before user could actually see the content. Since the current approach hasn't given any noticeable UI freeze, closing in favor of relatively better UX.