Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use reloading on photo view #2250

Merged
merged 1 commit into from
Aug 20, 2019
Merged

Use reloading on photo view #2250

merged 1 commit into from
Aug 20, 2019

Conversation

tobiasKaminsky
Copy link
Member

@tobiasKaminsky tobiasKaminsky commented Feb 28, 2018

Fix #4235
Fix #1972
Fix #1682
Fix #1901

Once this is merged, revert: nextcloud/android-library#322

Stalled by:
nextcloud/server#15029
nextcloud/server#15048

This first loads 3x display items and on each bottom reach loads the next bunch of images.
Due to limitation of webdav this is currently only working if search is sorted by date, so not working on file names (for (favorite) search).

BUGS:

  • no loading dialog on start
  • swipe to refresh on photo search results in "/" file list
  • loading additional photos duplicates items, so after 3x we have 3x the first image
  • sort order is totally arbitrary
  • click on an image, return, sometimes show file list

TODOs

Signed-off-by: tobiasKaminsky tobias@kaminsky.me

@tobiasKaminsky tobiasKaminsky added this to the Nextcloud App 3.1.0 milestone Feb 28, 2018
@tobiasKaminsky tobiasKaminsky removed this from the Nextcloud App 3.1.0 milestone Mar 12, 2018
@tobiasKaminsky tobiasKaminsky force-pushed the replaceListWithRecyclerView branch from c9f6c5c to d4bed02 Compare March 13, 2018 10:07
@tobiasKaminsky
Copy link
Member Author

This will be a NC14+ feature as it depends on changes on webdav search.

@tobiasKaminsky tobiasKaminsky force-pushed the replaceListWithRecyclerView branch 5 times, most recently from 9c9b1a4 to 32e5835 Compare March 23, 2018 10:51
@AndyScherzinger AndyScherzinger changed the base branch from replaceListWithRecyclerView to master May 15, 2018 11:51
@AndyScherzinger
Copy link
Member

@tobiasKaminsky is this PR revive-able? Just asking because RecyclerView has already been merged and this PR has a lot of conflicts with master :/

@tobiasKaminsky
Copy link
Member Author

I will try, once I have a bit space left.
I thought that I based this of recyclerview PR, but apparently something went wrong.

@AndyScherzinger
Copy link
Member

recyclerview PR has already been merged, so maybe a rebase on master will solve most of the issues automatically?

@nextcloud nextcloud deleted a comment Jul 3, 2018
@nextcloud nextcloud deleted a comment Jul 3, 2018
@nextcloud nextcloud deleted a comment Jul 3, 2018
@nextcloud nextcloud deleted a comment Jul 3, 2018
@nextcloud nextcloud deleted a comment Jul 3, 2018
@nextcloud nextcloud deleted a comment Jul 3, 2018
@nextcloud nextcloud deleted a comment Jul 3, 2018
@nextcloud nextcloud deleted a comment Jul 3, 2018
@nextcloud nextcloud deleted a comment Jul 3, 2018
@nextcloud nextcloud deleted a comment Jul 3, 2018
@nextcloud nextcloud deleted a comment Jul 3, 2018
@nextcloud nextcloud deleted a comment Aug 16, 2019
@nextcloud-android-bot
Copy link
Collaborator

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/10407.apk

qrcode

To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.

@nextcloud-android-bot
Copy link
Collaborator

Codacy

276

Lint

TypemasterPR
Warnings5858
Errors00

SpotBugs (new)

Warning TypeNumber
Bad practice Warnings24
Correctness Warnings69
Internationalization Warnings12
Malicious code vulnerability Warnings4
Multithreaded correctness Warnings9
Performance Warnings111
Security Warnings46
Dodgy code Warnings138
Total413

SpotBugs (master)

Warning TypeNumber
Bad practice Warnings24
Correctness Warnings69
Internationalization Warnings12
Malicious code vulnerability Warnings4
Multithreaded correctness Warnings9
Performance Warnings111
Security Warnings46
Dodgy code Warnings135
Total410

@nextcloud-android-bot
Copy link
Collaborator

@tobiasKaminsky
Copy link
Member Author

@ezaquarii @AndyScherzinger I would like to get this into 3.8.0 RC1, which is scheduled for next Monday.
As this is an isolated enhancement of a currently non-working feature, I think this is better than nothing.

@tobiasKaminsky
Copy link
Member Author

IT test failure are unrelated.
Codacy is somehow true, but this is old code, which just was moved, so I would like to keep it this way and tackle it later

@AndyScherzinger
Copy link
Member

Fine with me :

@AndyScherzinger
Copy link
Member

Awaiting feedback from @ezaquarii :)

@mlaverdiere
Copy link

I just tried the latest 10407.apk and it works way better than the previous 10374.apk (and that the current stable release): pictures are loading (relatively...) fast the first time the pictures section is clicked and when coming back, it's much (relatively...) faster since it seems it doesn't try to reload completely the pictures but instead relie on cache data. Also, pictures are displayed in some logical order, i.e. pictures last taken (or modified/loaded I guess) are displayed first.

I would say that, at last, with these fixes, the pictures section of the ND app. would be usable. Thanks!

@nextcloud-android-bot
Copy link
Collaborator

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/10424.apk

qrcode

To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.

@mlaverdiere
Copy link

mlaverdiere commented Aug 17, 2019

Oops.. I did some other tests (with 10407.apk) that were not so conclusive: upon exiting and coming back to the ND app, only grey icons were displayed in the pictures section and eventually, the app. crashed repetitively... Once I could get the pictures showing up again, it seemed that after it managed to display 95 images, it started to endlessly try to load the next ones, without any result...

@nextcloud-android-bot
Copy link
Collaborator

@nextcloud-android-bot
Copy link
Collaborator

Codacy

276

Lint

TypemasterPR
Warnings5858
Errors00

SpotBugs (new)

Warning TypeNumber
Bad practice Warnings24
Correctness Warnings69
Internationalization Warnings12
Malicious code vulnerability Warnings4
Multithreaded correctness Warnings9
Performance Warnings111
Security Warnings46
Dodgy code Warnings138
Total413

SpotBugs (master)

Warning TypeNumber
Bad practice Warnings24
Correctness Warnings69
Internationalization Warnings12
Malicious code vulnerability Warnings4
Multithreaded correctness Warnings9
Performance Warnings111
Security Warnings46
Dodgy code Warnings135
Total410

@ezaquarii
Copy link
Collaborator

@mlaverdiere do you have the crash stacktrace?

@mlaverdiere
Copy link

Sorry, but how could I get the stacktrace? (just a regular user here, so I need some guidance...)

10424.apk loads pictures very fast, without any crash (so far), but again, stops after the first 95 images (endless spinning wheel)

@ezaquarii
Copy link
Collaborator

@mlaverdiere I'd expect you get a stacktrace displayed in a popup upon crash. It looks like this PR is behind master.

I created another test build for you. This one should display the stack trace popup on crash: #4339

@mlaverdiere
Copy link

OK, i just tested the 10427 build: no crash to report yet, but still stops after 95 pictures...

@tobiasKaminsky tobiasKaminsky merged commit c8173c3 into master Aug 20, 2019
@delete-merged-branch delete-merged-branch bot deleted the photoSearchLimit branch August 20, 2019 06:19
@tobiasKaminsky tobiasKaminsky added this to the Nextcloud App 3.8.0 milestone Aug 20, 2019
tobiasKaminsky added a commit that referenced this pull request Aug 21, 2019
b36067d Merge pull request #4294 from AlexNi245/#2216-activity-data-divers-design
9624019 activity header has now the same font size as a activity element
fa11565 fixed issue  Avoid reassigning parameters such as 'itemPosition'
5a3db5e replace do while loop in getHeaderPositionForItem with while loop
1dd2a5a change naming of Canvas c to Canvas canvas
f4e964e change class name of ActivityListItemDecoration to StickyHeaderItemDecoration, which is more generic
52a7ffe add license text
6ffa9d0 remove duplicate entry of setContentView
cdd5d38 add getHeaderPositionForItem unit test
0ac5a8b add static import for com.owncloud.android.lib.resources.activities.model.Activity;
4ea9667 unit test for isHeader(int pos)
b61f9e0 format ActivityListAdapter
9012f43 set visibility from ActivityViewHeaderHolder back to protected
7a30070 remove unnecessary TAG field and replace nested if statement with && to fix codeacy-bot issues
a26a895 apply changes to java doc
c41dd38 optimize imports
b4764f7 remove unnecessary files
792a6b9 finish implementation of sticky header implementation. This feature was created according to the this implementation : https://stackoverflow.com/questions/32949971/how-can-i-make-sticky-headers-in-recyclerview-without-external-lib
13e7aff increase height of header element and set backgroundcolor to white
a184345 first implementation of sticky header logic.
cd3d8dc start to implement sticky header behavior
259e106 Merge pull request #4355 from nextcloud/drawer
caf1842 drawer: show only server address
cb7d4a3 revert to old image (#4356)
7e44fec revert to old image
f7c4eec Merge pull request #4345 from nextcloud/push
a3fda5a no need to use owncloudClient
9a023c6 Check if app is excluded from battery optimization (#3589)
527c5db Use conscrypt (#4314)
6014e90 use conscrypt
5373660 Provide a banal 'paste' postmessage implementation. (#4189)
68cebf8 revert DeviceModule back to Kotlin
969ce78 Drone: update FindBugs results to reflect reduced error/warning count [skip ci]
f26095f Merge pull request #4245 from fogninid/fixUploadListComparator
e72a789 show on special vendors "disable power check" in auto upload menu - tint button - change logic when to show battery warning
c8173c3 Use reloading on photo view (#2250)
c38dcf3 Delete temp file on receive external files (#4349)
c155edf Merge pull request #4347 from nextcloud/blacklistThumbnail
a03ff84 daily dev 20190820
@gessel
Copy link

gessel commented Jul 9, 2020

as #1682 and #6138 are closed and redirect here:

Photos pane in android app isn't working; I switched from release to dev and tried with Nextcloud-android/20200707, it seems to time out and eventually (after 30-60 seconds or so) gives the No Photos/Upload some photos or activate auto upload. The Photos App on the server works as expected (and there are definitely photos).

Model: SM-N950N
Brand: samsung
Product: greatlteks
Device: greatlteks
Version-Codename: REL
Version-Release: 9

Server Logs (level 1)

{"reqId":"VNaduzAIUIfGiDbVkBpz","level":1,"time":"2020-07-09T12:49:56+00:00","remoteAddr":"dev.ip.ad.dr","user":"gessel","app":"no app in context","method":"PROPFIND","url":"/remote.php/webdav/","message":"Deprecated event type for {\"[object] (OCP\\SabrePluginEvent)\":{\"*statusCode\":200,\"*message\":\"\",\"*server\":{\"[object] (OCA\\DAV\\Connector\\Sabre\\Server)\":{\"tree\":\"[object] (OCA\\DAV\\Connector\\Sabre\\ObjectTree)\",\"*baseUri\":\"/remote.php/webdav/\",\"httpResponse\":\"[object] (Sabre\\HTTP\\Response)\",\"httpRequest\":\"[object] (Sabre\\HTTP\\Request)\",\"sapi\":\"[object] (Sabre\\HTTP\\Sapi)\",\"*plugins\":[],\"transactionType\":null,\"protectedProperties\":{\"...\":\"Over 20 items, aborting normalization\"},\"debugExceptions\":false,\"resourceTypeMapping\":[],\"enablePropfindDepthInfinity\":true,\"xml\":\"[object] (Sabre\\DAV\\Xml\\Service)\",\"*listeners\":{\"...\":\"Over 20 items, aborting normalization\"},\"*wildcardListeners\":[],\"*listenerIndex\":[],\"*logger\":null}},\"Symfony\\Contracts\\EventDispatcher\\EventpropagationStopped\":false}}: null","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/20200707","version":"19.0.0.12"}
{"reqId":"2D2TRdESnekNINCv8ilc","level":1,"time":"2020-07-09T12:49:57+00:00","remoteAddr":"dev.ip.ad.dr","user":"gessel","app":"no app in context","method":"PROPFIND","url":"/remote.php/webdav/","message":"Deprecated event type for {\"[object] (OCP\\SabrePluginEvent)\":{\"*statusCode\":200,\"*message\":\"\",\"*server\":{\"[object] (OCA\\DAV\\Connector\\Sabre\\Server)\":{\"tree\":\"[object] (OCA\\DAV\\Connector\\Sabre\\ObjectTree)\",\"*baseUri\":\"/remote.php/webdav/\",\"httpResponse\":\"[object] (Sabre\\HTTP\\Response)\",\"httpRequest\":\"[object] (Sabre\\HTTP\\Request)\",\"sapi\":\"[object] (Sabre\\HTTP\\Sapi)\",\"*plugins\":[],\"transactionType\":null,\"protectedProperties\":{\"...\":\"Over 20 items, aborting normalization\"},\"debugExceptions\":false,\"resourceTypeMapping\":[],\"enablePropfindDepthInfinity\":true,\"xml\":\"[object] (Sabre\\DAV\\Xml\\Service)\",\"*listeners\":{\"...\":\"Over 20 items, aborting normalization\"},\"*wildcardListeners\":[],\"*listenerIndex\":[],\"*logger\":null}},\"Symfony\\Contracts\\EventDispatcher\\EventpropagationStopped\":false}}: null","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/20200707","version":"19.0.0.12"}

Server log (level 0)

{"reqId":"dCOY2yvY6GlvZbY9hzaJ","level":0,"time":"2020-07-09T14:26:08+00:00","remoteAddr":"dev.ip.ad.dr","user":"gessel","app":"workflowengine","method":"SEARCH","url":"/remote.php/dav","message":"Flow activation: rules were requested for operation Block access to a file","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/20200707","version":"19.0.0.12"}
{"reqId":"dCOY2yvY6GlvZbY9hzaJ","level":0,"time":"2020-07-09T14:26:08+00:00","remoteAddr":"dev.ip.ad.dr","user":"gessel","app":"workflowengine","method":"SEARCH","url":"/remote.php/dav","message":"No flow configurations is going to run Block access to a file","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/20200707","version":"19.0.0.12"}

This request ID:

 # grep dCOY2yvY6GlvZbY9hzaJ /var/log/nextcloud.log | wc -l
   70490


Device Logs

2020-07-09T15:49:50.482+0300;D;LogsActivity;onPause() ending
2020-07-09T15:49:50.505+0300;D;SettingsActivity;onStart() starting
2020-07-09T15:49:50.508+0300;D;SettingsActivity;onResume() starting
2020-07-09T15:49:50.943+0300;D;LogsActivity;onStop() ending
2020-07-09T15:49:50.945+0300;D;LogsActivity;onDestroy() ending
2020-07-09T15:49:51.785+0300;D;SettingsActivity;onPause() ending
2020-07-09T15:49:51.817+0300;V;BaseActivity;onRestart() start
2020-07-09T15:49:51.823+0300;D;FileDisplayActivity;onStart() starting
2020-07-09T15:49:51.833+0300;D;OwnCloudClient #3;REQUEST GET /ocs/v2.php/cloud/capabilities
2020-07-09T15:49:51.839+0300;D;AdvancedSslSocketFactory;Creating SSL Socket with remote serv.domain.com:443, local null:0, params: org.apache.commons.httpclient.params.HttpConnectionParams@1ca67c2
2020-07-09T15:49:51.839+0300;D;AdvancedSslSocketFactory; ... with connection timeout 5000 and socket timeout 40000
2020-07-09T15:49:51.841+0300;I;ServerNameIndicator;SSLSocket implementation: org.conscrypt.Java8FileDescriptorSocket
2020-07-09T15:49:51.841+0300;I;ServerNameIndicator;SNI done, hostname: serv.domain.com
2020-07-09T15:49:51.855+0300;D;OwnCloudClient #3;REQUEST GET /ocs/v1.php/cloud/user
2020-07-09T15:49:51.857+0300;D;AdvancedSslSocketFactory;Creating SSL Socket with remote serv.domain.com:443, local null:0, params: org.apache.commons.httpclient.params.HttpConnectionParams@fc30ab4
2020-07-09T15:49:51.857+0300;D;AdvancedSslSocketFactory; ... with connection timeout 5000 and socket timeout 40000
2020-07-09T15:49:51.858+0300;I;ServerNameIndicator;SNI done, hostname: serv.domain.com
2020-07-09T15:49:51.874+0300;V;FileDisplayActivity;onResume() start
2020-07-09T15:49:51.876+0300;D;FileDisplayActivity;onResume() starting
2020-07-09T15:49:51.960+0300;V;FileDisplayActivity;onResume() end
2020-07-09T15:49:51.986+0300;V;OCFileListFragment;Kept the options menu default structure
2020-07-09T15:49:52.025+0300;D;OCFileListAdapter;sharees of barzan: [com.owncloud.android.lib.resources.shares.ShareeUser@de5fbe3]
2020-07-09T15:49:52.045+0300;D;OCFileListAdapter;sharees of BRT-LLC: []
2020-07-09T15:49:52.145+0300;D;OCFileListAdapter;sharees of PD: [com.owncloud.android.lib.resources.shares.ShareeUser@a45c2b7]
2020-07-09T15:49:52.448+0300;D;OwnCloudClient #3;REQUEST GET /status.php
2020-07-09T15:49:52.450+0300;D;AdvancedSslSocketFactory;Creating SSL Socket with remote serv.domain.com:443, local null:0, params: org.apache.commons.httpclient.params.HttpConnectionParams@7550b3f
2020-07-09T15:49:52.450+0300;D;AdvancedSslSocketFactory; ... with connection timeout 5000 and socket timeout 40000
2020-07-09T15:49:52.451+0300;I;ServerNameIndicator;SNI done, hostname: serv.domain.com
2020-07-09T15:49:52.898+0300;D;SettingsActivity;onStop() ending
2020-07-09T15:49:52.899+0300;D;SettingsActivity;onDestroy() ending
2020-07-09T15:49:54.186+0300;D;GetCapabilitiesRemoteOperation;Successful response: {"ocs":{"meta":{"status":"ok","statuscode":200,"message":"OK"},"data":{"version":{"major":19,"minor":0,"micro":0,"string":"19.0.0","edition":"","extendedSupport":false},"capabilities":{"core":{"pollinterval":60,"webdav-root":"remote.php\/webdav"},"bruteforce":{"delay":0},"password_policy":{"minLength":10,"enforceNonCommonPassword":true,"enforceNumericCharacters":false,"enforceSpecialCharacters":false,"enforceUpperLowerCase":false,"api":{"generate":"https:\/\/serv.domain.com\/ocs\/v2.php\/apps\/password_policy\/api\/v1\/generate","validate":"https:\/\/serv.domain.com\/ocs\/v2.php\/apps\/password_policy\/api\/v1\/validate"}},"files":{"bigfilechunking":true,"blacklisted_files":[".htaccess"],"directEditing":{"url":"https:\/\/serv.domain.com\/ocs\/v2.php\/apps\/files\/api\/v1\/directEditing","etag":"6226ba873373f5e73a3ef504107523f7"},"versioning":true,"undelete":true},"activity":{"apiv2":["filters","filters-api","previews","rich-strings"]},"ocm":{"enabled":true,"apiVersion":"1.0-proposal1","endPoint":"https:\/\/serv.domain.com\/index.php\/ocm","resourceTypes":[{"name":"file","shareTypes":["user","group"],"protocols":{"webdav":"\/public.php\/webdav\/"}}]},"dav":{"chunking":"1.0"},"files_sharing":{"api_enabled":true,"public":{"enabled":true,"password":{"enforced":false,"askForOptionalPassword":false},"expire_date":{"enabled":false},"multiple_links":true,"expire_date_internal":{"enabled":false},"send_mail":false,"upload":true,"upload_files_drop":true},"resharing":true,"user":{"send_mail":false,"expire_date":{"enabled":true}},"group_sharing":true,"group":{"enabled":true,"expire_date":{"enabled":true}},"default_permissions":1,"federation":{"outgoing":false,"incoming":false,"expire_date":{"enabled":true}},"sharee":{"query_lookup_default":false},"sharebymail":{"enabled":true,"upload_files_drop":{"enabled":true},"password":{"enabled":true},"expire_date":{"enabled":true}}},"fulltextsearch":{"remote":true,"providers":[]},"notes":{"api_version":["0.2","1.1"],"version":"3.6.0"},"notifications":{"ocs-endpoints":["list","get","delete","delete-all","icons","rich-strings","action-web"],"push":["devices","object-data","delete"],"admin-notifications":["ocs","cli"]},"spreed":{"features":["audio","video","chat-v2","conversation-v2","guest-signaling","empty-group-room","guest-display-names","multi-room-users","favorites","last-room-activity","no-ping","system-messages","mention-flag","in-call-flags","notification-levels","invite-groups-and-mails","locked-one-to-one-rooms","read-only-rooms","chat-read-marker","webinary-lobby","start-call-flag","chat-replies","circles-support","force-mute","chat-reference-id"],"config":{"attachments":{"allowed":true,"folder":"\/Talk"},"chat":{"max-length":32000},"conversations":{"can-create":true}}},"theming":{"name":"BRT NetNAS","url":"https:\/\/www.blackrosetech.com\/","slogan":"a safe home for all your data","color":"#351111","color-text":"#ffffff","color-element":"#351111","logo":"https:\/\/serv.domain.com\/index.php\/apps\/theming\/image\/logo?useSvg=1&v=7","background":"#351111","background-plain":true,"background-default":true,"logoheader":"https:\/\/serv.domain.com\/index.php\/apps\/theming\/image\/logo?useSvg=1&v=7","favicon":"https:\/\/serv.domain.com\/index.php\/apps\/theming\/image\/logo?useSvg=1&v=7"}}}}}
2020-07-09T15:49:54.188+0300;D;GetCapabilitiesRemoteOperation;*** Added version
2020-07-09T15:49:54.188+0300;D;GetCapabilitiesRemoteOperation;*** Added core
2020-07-09T15:49:54.188+0300;D;GetCapabilitiesRemoteOperation;*** Added files_sharing
2020-07-09T15:49:54.188+0300;D;GetCapabilitiesRemoteOperation;*** Added files
2020-07-09T15:49:54.189+0300;D;GetCapabilitiesRemoteOperation;*** Added theming
2020-07-09T15:49:54.189+0300;D;GetCapabilitiesRemoteOperation;*** Added notifications
2020-07-09T15:49:54.189+0300;D;GetCapabilitiesRemoteOperation;*** Get Capabilities completed 
2020-07-09T15:49:54.243+0300;D;UpdateOCVersionOperation;Got new OC version 19.0.0.12
2020-07-09T15:49:54.243+0300;I;UpdateOCVersionOperation;Check for update of Nextcloud server version at https://serv.domain.com/remote.php/webdav: Operation finished with HTTP status code -1 (success)
2020-07-09T15:49:54.250+0300;D;ExternalLinks;links disabled
2020-07-09T15:49:54.269+0300;D;OwnCloudClient #3;REQUEST GET /ocs/v2.php/cloud/capabilities
2020-07-09T15:49:54.742+0300;D;GetCapabilitiesRemoteOperation;Capabilities not modified
2020-07-09T15:49:54.742+0300;D;GetCapabilitiesRemoteOperation;*** Get Capabilities completed 
2020-07-09T15:49:54.778+0300;D;OwnCloudClient #3;REQUEST GET /ocs/v1.php/cloud/user
2020-07-09T15:49:55.382+0300;I;RefreshFolderOperation;Got display name: com.owncloud.android.lib.common.UserInfo@c26442c
2020-07-09T15:49:55.383+0300;D;RefreshFolderOperation;Checking changes in gessel@serv.domain.com/
2020-07-09T15:49:55.398+0300;D;OwnCloudClient #3;REQUEST PROPFIND /remote.php/webdav/
2020-07-09T15:49:55.874+0300;I;RefreshFolderOperation;Checked gessel@serv.domain.com/ : changed
2020-07-09T15:49:55.880+0300;D;OwnCloudClient #3;REQUEST PROPFIND /remote.php/webdav/
2020-07-09T15:49:56.002+0300;V;OCFileListFragment;Kept the options menu default structure
2020-07-09T15:49:57.481+0300;V;OCFileListFragment;Kept the options menu default structure
2020-07-09T15:49:57.498+0300;V;FileDisplayActivity;onPause() start
2020-07-09T15:49:57.499+0300;D;FileDisplayActivity;onPause() ending
2020-07-09T15:49:57.500+0300;V;FileDisplayActivity;onPause() end
2020-07-09T15:49:57.501+0300;D;FileDisplayActivity;Switch to photo search fragment
2020-07-09T15:49:57.502+0300;V;FileDisplayActivity;onResume() start
2020-07-09T15:49:57.503+0300;D;FileDisplayActivity;onResume() starting
2020-07-09T15:49:57.507+0300;I;OCFileListFragment;onAttach
2020-07-09T15:49:57.511+0300;I;OCFileListFragment;onCreateView() start
2020-07-09T15:49:57.511+0300;D;ExtendedListFragment;onCreateView
2020-07-09T15:49:57.545+0300;I;OCFileListFragment;onCreateView() end
2020-07-09T15:49:57.545+0300;I;PhotoFragment;onCreateView() in PhotoFragment end
2020-07-09T15:49:57.546+0300;I;OCFileListFragment;onActivityCreated() start
2020-07-09T15:49:57.573+0300;D;OwnCloudClient #3;REQUEST OPTIONS /remote.php/dav
2020-07-09T15:49:57.592+0300;V;FileDisplayActivity;onResume() end
2020-07-09T15:49:57.809+0300;I;ReadFolderRemoteOperation;Synchronized /: Operation finished with HTTP status code 207 (success)
2020-07-09T15:49:57.809+0300;D;RefreshFolderOperation;Synchronizing gessel@serv.domain.com/
2020-07-09T15:49:57.813+0300;D;RefreshFolderOperation;Remote folder / changed - starting update of local data 
2020-07-09T15:49:57.828+0300;D;FileDataStorageManager;Saving folder / with 22 children and 0 files to remove
2020-07-09T15:49:57.913+0300;D;FileDataStorageManager;Sending 23 operations to FileContentProvider
2020-07-09T15:49:57.914+0300;D;FileContentProvider;applying batch in provider com.owncloud.android.providers.FileContentProvider@6740ebd (temporary: false)
2020-07-09T15:49:57.947+0300;D;FileContentProvider;applied batch in provider com.owncloud.android.providers.FileContentProvider@6740ebd
2020-07-09T15:49:57.948+0300;D;OwnCloudClient #3;REQUEST SEARCH /remote.php/dav
2020-07-09T15:49:57.958+0300;D;RefreshFolderOperation;Send broadcast com.owncloud.android.operations.RefreshFolderOperation.EVENT_SINGLE_FOLDER_CONTENTS_SYNCED
2020-07-09T15:49:57.959+0300;D;OwnCloudClient #3;REQUEST GET /ocs/v2.php/apps/files_sharing/api/v1/shares
2020-07-09T15:49:58.936+0300;D;GetSharesForFileRemoteOperation;Got 7 shares
2020-07-09T15:49:58.960+0300;D;FileDataStorageManager;Sending 29 operations to FileContentProvider
2020-07-09T15:49:58.960+0300;D;FileContentProvider;applying batch in provider com.owncloud.android.providers.FileContentProvider@6740ebd (temporary: false)
2020-07-09T15:49:59.004+0300;D;FileContentProvider;applied batch in provider com.owncloud.android.providers.FileContentProvider@6740ebd
2020-07-09T15:49:59.004+0300;D;RefreshFolderOperation;Send broadcast com.owncloud.android.operations.RefreshFolderOperation.EVENT_SINGLE_FOLDER_SHARES_SYNCED
2020-07-09T15:50:49.312+0300;V;FileDisplayActivity;onPause() start
2020-07-09T15:50:49.314+0300;D;FileDisplayActivity;onPause() ending
2020-07-09T15:50:49.314+0300;V;FileDisplayActivity;onPause() end
2020-07-09T15:50:49.338+0300;D;SettingsActivity;onCreate(Bundle) starting
2020-07-09T15:50:49.388+0300;D;SettingsActivity;onStart() starting
2020-07-09T15:50:49.390+0300;D;SettingsActivity;onResume() starting
2020-07-09T15:50:49.851+0300;D;FileDisplayActivity;onStop() ending
2020-07-09T15:50:49.852+0300;V;FileDisplayActivity;onSaveInstanceState() start
2020-07-09T15:50:49.852+0300;D;FileDisplayActivity;onSaveInstanceState(Bundle) starting
2020-07-09T15:50:49.853+0300;D;ExtendedListFragment;onSaveInstanceState()
2020-07-09T15:50:49.853+0300;V;FileDisplayActivity;onSaveInstanceState() end
2020-07-09T15:50:52.167+0300;D;SettingsActivity;onPause() ending
2020-07-09T15:50:52.186+0300;D;LogsActivity;onCreate(Bundle) starting

@svenb1234
Copy link

Same here with NC 18.0.6 and a Pixel 3a with the current Nextcloud App 3.12.1. Usually it only took unjustifiable long before the pictures appears, now it always times out.

It also seems to be not easy to debug the app for a user, such as logging its requests to the server or some debugging console as browsers have it for debugging websites.

@AndyScherzinger
Copy link
Member

It also seems to be not easy to debug the app for a user, such as logging its requests to the server or some debugging console as browsers have it for debugging websites.

The dev and debug builds do ship such a log view (accessible via the settings screen within the app) while this a general logging view, not one just for network communication

@AndyScherzinger
Copy link
Member

other than that this is a (merged) PR, so it would be best to create an issue since discussions in merged, old PRs are rather getting lost in the Github notification noise

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
8 participants