Skip to content
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

ToS #14159

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

ToS #14159

wants to merge 4 commits into from

Conversation

tobiasKaminsky
Copy link
Member

@tobiasKaminsky tobiasKaminsky commented Dec 11, 2024

Needs: nextcloud/android-library#1604

2024-12-11-070422

  • Tests written, or not not needed

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
@tobiasKaminsky tobiasKaminsky linked an issue Dec 11, 2024 that may be closed by this pull request
Copy link

test-Unit test failed, but no output was generated. Maybe a preliminary stage failed.

Copy link

blue-Light-Screenshot test failed, but no output was generated. Maybe a preliminary stage failed.

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
@@ -1423,6 +1441,91 @@ public void onReceive(Context context, Intent intent) {
}
}
}

private void showDialog() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The current logic can be moved into a new DialogFragment or class for better separation of concerns, maintainability and code readability. Now, one single function does multiple things and hard to read code.

New Class:
• showDialog(): Display the dialog when necessary.
• private getTerms(): Fetch the terms.
• private signTerms(): Handle the logic for signing the terms.
• private setLanguageDropdown(): Manage the language dropdown setup and selection.
...more functions if it's necessary

FileDisplayActivity will call showDialog() function. If it's necessary it will display dialog, else it will do nothing.

@@ -10,7 +10,7 @@
*/
buildscript {
ext {
androidLibraryVersion ="4a95888afc472369e85fccae3d3573ff9e36fb50"
androidLibraryVersion ="f21604054b"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I was trying to test I came across with dependency verification error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Accept ToS
3 participants