-
Notifications
You must be signed in to change notification settings - Fork 3.1k
[FEATURE REQUEST] Allow to go to the destination folder when the copy/move operation is finished #4802
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
mykh-hailo
wants to merge
7
commits into
owncloud:master
Choose a base branch
from
mykh-hailo:feat/copy_snack_bar
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+104
−12
Open
[FEATURE REQUEST] Allow to go to the destination folder when the copy/move operation is finished #4802
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
a49556a
feat: show destination folder snackbar for copy/move operations
mykh-hailo d1c2bea
fix: hide three-dot menu in folder picker mode
mykh-hailo dfb979a
chore: add changelog
mykh-hailo 4416a83
refactor: refactor Snackbar usage to shared showSnackbarWithAction ex…
mykh-hailo 05b1153
fix: remove unneccessary code
mykh-hailo dad47d3
refactor: update string resource
mykh-hailo 2468ae7
feat: add release note
mykh-hailo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| Enhancement: Show destination folder snackbar for copy/move operations | ||
|
|
||
| A snackbar message has been displayed after copy or move operations with an action button that allows users to quickly navigate to the destination folder. | ||
|
|
||
| https://github.com/owncloud/android/issues/4379 | ||
| https://github.com/owncloud/android/pull/4802 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -57,6 +57,7 @@ import com.owncloud.android.extensions.openOCFile | |
| import com.owncloud.android.extensions.sendDownloadedFilesByShareSheet | ||
| import com.owncloud.android.extensions.showErrorInSnackbar | ||
| import com.owncloud.android.extensions.showMessageInSnackbar | ||
| import com.owncloud.android.extensions.showSnackbarWithAction | ||
| import com.owncloud.android.presentation.authentication.ACTION_UPDATE_EXPIRED_TOKEN | ||
| import com.owncloud.android.presentation.authentication.EXTRA_ACCOUNT | ||
| import com.owncloud.android.presentation.authentication.EXTRA_ACTION | ||
|
|
@@ -163,16 +164,19 @@ class FileDetailsFragment : FileFragment() { | |
| when (uiResult) { | ||
| is UIResult.Error -> { | ||
| if (uiResult.error is AccountNotFoundException) { | ||
| Snackbar.make(view, getString(R.string.sync_fail_ticker_unauthorized), Snackbar.LENGTH_INDEFINITE) | ||
| .setAction(R.string.auth_oauth_failure_snackbar_action) { | ||
| showSnackbarWithAction( | ||
| message = getString(R.string.sync_fail_ticker_unauthorized), | ||
| actionText = getString(R.string.auth_oauth_failure_snackbar_action), | ||
| action = { | ||
|
Comment on lines
+167
to
+170
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think you removed the snackbar duration from here, and it should be displayed indefinite: |
||
| val updateAccountCredentials = Intent(requireActivity(), LoginActivity::class.java) | ||
| updateAccountCredentials.apply { | ||
| putExtra(EXTRA_ACCOUNT, fileDetailsViewModel.getAccount()) | ||
| putExtra(EXTRA_ACTION, ACTION_UPDATE_EXPIRED_TOKEN) | ||
| addFlags(Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS) | ||
| } | ||
| startActivity(updateAccountCredentials) | ||
| }.show() | ||
| }, | ||
| duration = Snackbar.LENGTH_INDEFINITE) | ||
| } else { | ||
| showErrorInSnackbar(R.string.sync_fail_ticker, uiResult.error) | ||
| fileDetailsViewModel.updateActionInDetailsView(NONE) | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.