Repository navigation
Thumbnails from server - #687
Conversation
- Thumbnail size is set to 32dp
…insky/android into thumbnails_from_server Conflicts: src/com/owncloud/android/ui/adapter/FileListListAdapter.java
Conflicts: src/com/owncloud/android/ui/adapter/FileListListAdapter.java
There was a problem hiding this comment.
This field cannot be defined in this scope (static).
The OwnCloudClient depends on an OC Account; the ThumbnailsCache is a single instance for all the existing OC Accounts. "Saving" just the last needed client will imply problems.
Right now, this is causing the bug #691; the first time the app is installed, while the account is being created, the InitTask is triggered with a NULL account, resulting in mClient = null; subsequent tasks to generate thumbnails will do nothing because of this NULL value.
The changes needed are:
- Move mAccount field from InitDiskCacheTask to ThumbnailGenerationTask; set it appropiately in its constructor.
- get an OwncloudClient instance in the doInBackground method of ThumbnailGenerationTask, not in InitCacheTask
|
So, hopefully I have done everything right with my new permissions. Is this necessary? (I am not into the internal behaviour yet) |
|
It's a risk for performance, but that's something I will evaluate now with the battery of tests. Anyway, we have a solution for that: swap to the newer SingleSessionOwnCloudClientManager in the OC Android library so that clients are not created every time, but reused for the same account. |
…shed, the thumbnail does not change and it is not updated
…the image changes on the server
|
Seems that performance is good enough for the moment. Anyway, we have some idea that probably would improve it; I'll tell you as soon as I find a while. |
Get remote thumbnails from server (OC8)
|
Great :) |
No description provided.