-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
fix: register/unregister broadcast receivers #16165
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
Conversation
Signed-off-by: alperozturk <[email protected]>
|
/backport to stable-3.35 |
| val fileDisplayActivity = activity as FileDisplayActivity | ||
| fileDisplayActivity.updateActionBarTitleAndHomeButtonByString(getString(R.string.drawer_item_shared)) | ||
| fileDisplayActivity.setMainFabVisible(false) | ||
| fileDisplayActivity.initSyncBroadcastReceiver() |
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.
No need to register from here again since SharedListFragment child of OCFileListFragment and OCFileListFragment used in FileDisplayActivity.
app/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.kt
Outdated
Show resolved
Hide resolved
Co-authored-by: Tom <[email protected]> Signed-off-by: Alper Öztürk <[email protected]>
|
blue-Light-Screenshot test failed, but no output was generated. Maybe a preliminary stage failed. |
|
APK file: https://www.kaminsky.me/nc-dev/android-artifacts/16165.apk |

Issue
When the user navigates to a subdirectory from the Favorites or Shared tab, the receivers are unregistered, which causes the folder to not refresh correctly.
Changes
Receivers needs to be registered and unregistered on onStart/onStop.
Documentation:
Result