android icon indicating copy to clipboard operation
android copied to clipboard

Share screen behaviour with photos

Open bazio101 opened this issue 7 years ago • 10 comments

Nextcloud dev android 20190118 version Android 5.0.2 Server running Nextcloud 13.0.8

When I select a file (any except photo) -> details -> sharing and click on field to write, everything works fine. If I do the same with a photo, when click on field and keyboard appears, the loading icon comes up. Can type letters and take results of users but is not possible to see what I write, unless I disappear the keyboard.

Sharing problem of issue #3402 with nextcloud dev 20190117 no more exists.

@tobiasKaminsky I uploaded some screenshots on my server on test account. Hope they help.

bazio101 avatar Jan 18 '19 09:01 bazio101

GitMate.io thinks possibly related issues are https://github.com/nextcloud/android/issues/567 (Photo view), https://github.com/nextcloud/android/issues/1607 (Cache images in Photos Screen), https://github.com/nextcloud/android/issues/2717 (Back button doesn't work in sharing screen), https://github.com/nextcloud/android/issues/873 (Only "shared with others"), and https://github.com/nextcloud/android/issues/543 (Clarify search behaviour).

nextcloud-android-bot avatar Jan 18 '19 09:01 nextcloud-android-bot

2019-01-18-103143

Totally strange.

@AndyScherzinger do you have in idea?

tobiasKaminsky avatar Jan 18 '19 09:01 tobiasKaminsky

Indeed this is only happening for images.

tobiasKaminsky avatar Jan 18 '19 09:01 tobiasKaminsky

Also it happens if you click in "new comment" text input (in details of an image)

tobiasKaminsky avatar Jan 18 '19 09:01 tobiasKaminsky

no an idea about the issue, while the difference is obviously the toolbar's content (image view is hidden in the toolbar for non-images), so this is the only thing that comes to my mind atm.

AndyScherzinger avatar Jan 18 '19 09:01 AndyScherzinger

I suspect that for some reason the activity/share fragment (or parts of it) are set to hidden (as of the keyboard) and then the "empty_list" part remains visible.

If this is true, the question is, why does parts of the layout get hidden when opening the keyboard…and who is responsible of this…)

tobiasKaminsky avatar Jan 18 '19 09:01 tobiasKaminsky

Afaik while not having looked at the code we do not explicitely hide UI elements when the keyboard becomes visible

AndyScherzinger avatar Jan 18 '19 09:01 AndyScherzinger

Setting the LinearLayout to visibility:gone in empty_list.xml helps.

What about this explanation:

  • when keyboard is opened, the layout gets resized
  • as share/activity fragment has no minimum height, it gets so condensed that you cannot see it
  • only empty_list view remains

tobiasKaminsky avatar Jan 18 '19 09:01 tobiasKaminsky

yes, that might well be the cause of it 👍

AndyScherzinger avatar Jan 18 '19 10:01 AndyScherzinger

Setting the LinearLayout to visibility:gone in empty_list.xml helps.

This is indeed working, but now I have no clue how to do this programmatically: It should only show the loader on refresh activities/on loading on for first time.

But it now shows only a white area…

I guess on long run, we should set LinearLayout to "gone" by default and only enable it when needed in an occurrences…

tobiasKaminsky avatar Jan 18 '19 10:01 tobiasKaminsky