-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Fix warnings for FilesDisplayActivity #12113
Conversation
alperozturk96
commented
Oct 31, 2023
•
edited
Loading
edited
- Tests written, or not not needed
@@ -2338,44 +2291,6 @@ public void showFiles(boolean onDeviceOnly) { | |||
} | |||
} | |||
|
|||
@Subscribe(threadMode = ThreadMode.BACKGROUND) |
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.
Unused functions
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.
@tobiasKaminsky might know this better, but I expect these functions to be used by the event bus, so the code checks are false positives.
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.
I've done some testing and found out, that these functions are indeed called when an event is dispatched on the eventbus.
For example, public void onMessageEvent(final SearchEvent event)
is called, when the user switches to the Favourites tab from the main All files view.
b906724
to
e17f2bf
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.
see comment, best to check with Tobias
@@ -2338,44 +2291,6 @@ public void showFiles(boolean onDeviceOnly) { | |||
} | |||
} | |||
|
|||
@Subscribe(threadMode = ThreadMode.BACKGROUND) |
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.
@tobiasKaminsky might know this better, but I expect these functions to be used by the event bus, so the code checks are false positives.
e17f2bf
to
e6dc160
Compare
/rebase |
0e8ce06
to
ae72d9b
Compare
/rebase |
a398f10
to
799bc49
Compare
/rebase |
/rebase |
799bc49
to
818c1bc
Compare
/rebase |
818c1bc
to
81a6cd3
Compare
/rebase |
f236adb
to
7034377
Compare
APK file: https://www.kaminsky.me/nc-dev/android-artifacts/12113.apk |
/rebase |
Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
7034377
to
46d374a
Compare
blue-Light-Screenshot test failed, but no output was generated. Maybe a preliminary stage failed. |
Outdated PR, too much diff to merge it. |