-
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
[FEATURE REQUEST] Open and create .url shortcut files #4420
Conversation
ba59abb
to
3567b11
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.
Some questions and changes requested here @Aitorbp!
owncloudApp/src/main/java/com/owncloud/android/extensions/ActivityExt.kt
Outdated
Show resolved
Hide resolved
.../java/com/owncloud/android/presentation/files/createshortcut/CreateShortcutDialogFragment.kt
Outdated
Show resolved
Hide resolved
.../java/com/owncloud/android/presentation/files/createshortcut/CreateShortcutDialogFragment.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/presentation/files/filelist/FileListAdapter.kt
Outdated
Show resolved
Hide resolved
f80f80d
to
bcb571c
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.
Some more changes here @Aitorbp. Pay attention to the comments in previous CR, you skipped some of them
owncloudApp/src/main/java/com/owncloud/android/extensions/ActivityExt.kt
Outdated
Show resolved
Hide resolved
.../java/com/owncloud/android/presentation/files/createshortcut/CreateShortcutDialogFragment.kt
Outdated
Show resolved
Hide resolved
.../java/com/owncloud/android/presentation/files/createshortcut/CreateShortcutDialogFragment.kt
Outdated
Show resolved
Hide resolved
owncloudApp/src/main/java/com/owncloud/android/presentation/files/filelist/FileListAdapter.kt
Outdated
Show resolved
Hide resolved
owncloudApp/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.kt
Outdated
Show resolved
Hide resolved
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 now!
(3) [FIXED]Tiny detail for long names: error message is: By typing exactly 223 characters, the message is there. It shouldn't or changing the value to 222 Pixel 2, Android11 |
(4) [FIXED]About this comment:
but, what happens if it supports Both web and iOS use Pixel 2, Android11 |
(6) [FIXED]I'm not pretty sure to ellipsize the URL when it is very long. The URL to open is sensible information that is hidden to the user. Let me know if i'm wrong, but it is being ellipsized if the length is longer than 1 line. That means, almost every URL that points to a subfolder/subdomain is going to be ellipsized. I'd remove that, or expand to a longer size Pixel 2, Android11 |
Regarding the ellipsize of the URL when it is very long, the following occurs: if we want to put a maximum of three lines and set a truncated ellipsize in the middle, it will not work. Android does not have this functionality automatically, it would have to be programmed. Therefore the following options are considered:
|
I would discard this option directly. A scroll in a dialog is no good practice.
This is not a good option for me. What if the URL is so so long (not strange case currently) that the dialog gets too big and we cannot see its buttons? We need to set a limit somewhere Why is it that you can ellipsize at the end a text of more than 1 line but not in the middle? |
Does not the dialog (including the buttons) expand? i mean, if the text is too long, the buttons are on the bottom in the same way, just the central is expanded. |
Yes, the center will expand, but... what if it expands so much that the buttons get out of the screen? |
To sum up, to align with iOS behavior, we're going to leave the url unrestricted to the maximum number of lines, but add a scrollview so that when the text takes up more space than the screen, the url element will scroll. |
f353ed7
to
3b28f67
Compare
All reports are ready to be tested again @jesmrec |
everything is fixed. Now, i will face a 2nd QA round. |
(7) [FIXED]Minor change Typing a URL with blanks, the error This is correct, but i'd use |
Changed report (7), ready to test @jesmrec |
Related owncloud/web#11063 I noticed that the shorcuts created in the web client (oCIS) are not open in mobile clients if they lack of protocol prefix. If i'm not wrong, the current approach in Android app is adding the default protocol prefix (https) when the shortcut is open (not in creation), right @Aitorbp ? So, we have two options here:
which one do you like the most? |
Right we add the default protocol prefix when the shortcut is open. In my opinion, I would go for the current approach, even if the web were to set the protocol, the application would not be affected. |
Added back the protocol in shortcut creation. |
…esButton func and changed naming isCreateShortcutButtonEnabled
… change extractUrlFromFile to the class and minor fixing
…dd .url text in the end of edittext
…_no_blanks name string
…ShortcutFileInBrowser
bcbaede
to
d36ccf3
Compare
That's fixed, now adding the protocol in both creation and opening. |
Approved, ready to go! 💯 |
Related Issues
App: #4413
ReleaseNotesViewModel.kt
creating a newReleaseNote()
with String resources (if required)QA
Test plan: https://github.com/owncloud/QA/blob/master/Mobile/Android/Executions/Release_4.3/Shortcuts.md
Reports and improvements:
blanks
instead ofspaces
in error message [FEATURE REQUEST] Open and create .url shortcut files #4420 (comment) [FIXED]