-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Open deep links in app, items already discovered (1st round) #3598
base: master
Are you sure you want to change the base?
Conversation
67fb69e
to
b4fb9f6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First iteration 💯 Some suggestions here @fesave
owncloudApp/src/main/java/com/owncloud/android/extensions/ActivityExt.kt
Outdated
Show resolved
Hide resolved
owncloudApp/src/main/java/com/owncloud/android/extensions/ActivityExt.kt
Outdated
Show resolved
Hide resolved
owncloudApp/src/main/java/com/owncloud/android/ui/activity/FileActivity.java
Outdated
Show resolved
Hide resolved
owncloudApp/src/main/java/com/owncloud/android/ui/activity/FileActivity.java
Outdated
Show resolved
Hide resolved
owncloudApp/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.kt
Outdated
Show resolved
Hide resolved
owncloudApp/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.kt
Outdated
Show resolved
Hide resolved
owncloudApp/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.kt
Outdated
Show resolved
Hide resolved
owncloudApp/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.kt
Outdated
Show resolved
Hide resolved
b4fb9f6
to
ad15940
Compare
ad15940
to
214061a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
(1) [FIXED]
Current: Folder not opened, it is shown the root folder. Check the video, the link corresponds with the device-2022-04-11-171049.mp4Nexus 6P Android7 |
(2) [WONT FIX] -> new architecture.Prerequisite:
Two scenarios: Open via link the image -> image is opened Open via link the pdf -> details view is opened that means, depending on the content's openability, browsing works in a different way. Is this expected somehow? Could if be fixed? Nexus 6P Android7 |
e6135fb
to
20c5564
Compare
I think that with the new architecture the current behavior can be improved, but for the moment it is the first version. |
(3) [FIXED]Not posible to build the branch after the latest changes. Some manifest error happens:
BitRise build also fails with same error: https://app.bitrise.io/build/f4c6256e-f684-4d9f-a22c-467179da0ddf |
(4) [FIXED]
Current: First time, passcode/pattern is asked. If app is killed (no lock delay), next times the deeplink is opened, pattern/passcode is not asked. Expected: Every time a link is opened, pattern/passcode is asked Nexus 6P Android 7 |
(2) will need a new issue with |
(5) [FIXED]Checking the feature in some servers, i realised that the private link does not always is "plain". That means, it could contain some extra chunks. For example, in cloud.damken.com the private links are like With Android 7, the link is opened in the browser. With Android 12, it can not be manually added as supported. I also tried adding Is there anything we could do with that? |
938a4ab
to
f71c65f
Compare
fixed :) |
Regarding (5). Problem comes from the
Checked, this setup works. So, one option is creating a new parameter in If (logic not completed, so the leading slashes should be handled in the same line since no ifs are allowed in Manifest files) is this feasible @fesave? |
AFAIK, the I think the best option is to configure a new field inside our We would have to consider the possibility that the value could be of two types:
Are you in charge of creating the issue with the detailed solution and the name of the new field or do you prefer me to do it in this branch? @jesmrec |
it's ok to do in this branch. |
First of all, I have only reproduced this error with image files and their preview. I have coded a solution to avoid it, but, we have lost the automatic preview of the images. I think it is not bad at all because we can unify all the previews with the three action buttons that we should add after the design discussion here |
7b5a4a5
to
cf0d294
Compare
That means, that deeplinks will point always to is that OK @michaelstingl? should we create issue or develop this to mitigate such effect? |
Yes, with the current state, all files (except videos) show their preview screen if the user accesses them through a deep link. |
cf0d294
to
10697b2
Compare
What do you mean with "preview screen"? Images, Audio & Video should be shown or played if the app supports it. Only unsupported formats should open |
10697b2
to
dfffdce
Compare
owncloudApp/src/main/java/com/owncloud/android/ui/fragment/FileDetailFragment.java
Show resolved
Hide resolved
76692f3
to
08b091e
Compare
(6) [FIXED]
Current: crash happens. This is the stacktrace:
Expected: error message or similar Pixel5 Android12, Nexus6P Android7 |
Fixed |
Approved. At this point:
Known restriction: After opening an item, navigation is not totally smooth. Browsing back from |
Related Issues
App: #3573
QA
Test plan: https://github.com/owncloud/QA/blob/master/Mobile/Android/Release_2.21/3598-Universal%20Link%20I.md
Reports: