Skip to content

[FEATURE REQUEST] Download log files to device - #4205

Merged
Aitorbp merged 6 commits into
masterfrom
feature/streamlined_log_file_upload_functionality
Nov 3, 2023
Merged

Aitorbp merged 6 commits into
masterfrom
feature/streamlined_log_file_upload_functionality

Conversation

@Aitorbp

@Aitorbp Aitorbp commented Oct 31, 2023 •

Copy link
Copy Markdown
Contributor

Related Issues

App: #4155

  • Added changelog files for the fixed issues in folder changelog/unreleased. More info here

QA

#4205 (comment)

@Aitorbp Aitorbp self-assigned this Oct 31, 2023
@Aitorbp Aitorbp linked an issue Oct 31, 2023 that may be closed by this pull request
9 tasks done

@JuancaG05 JuancaG05 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Some changes requested here @Aitorbp

Comment thread changelog/unreleased/4205 Resolved
@Aitorbp
Aitorbp force-pushed the feature/streamlined_log_file_upload_functionality branch 3 times, most recently from 751ea3d to 76ed263 Compare November 2, 2023 14:22
@Aitorbp
Aitorbp requested a review from JuancaG05 November 2, 2023 14:22

@JuancaG05 JuancaG05 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!! You just need to fix some KtLint reports for BitRise to pass, specifically:

/bitrise/src/owncloudApp/src/main/java/com/owncloud/android/presentation/logging/LogsListActivity.kt:132:42 Redundant curly braces
/bitrise/src/owncloudApp/src/main/java/com/owncloud/android/presentation/logging/LogsListActivity.kt:161:56 Missing spacing after "{"

@jesmrec

jesmrec commented Nov 3, 2023 •

Copy link
Copy Markdown
Member

QA checks

  • File name
  • View in both orientations
  • Several files handling
  • Intent to external app
  • File name conflict

@Aitorbp
Aitorbp force-pushed the feature/streamlined_log_file_upload_functionality branch from 90a9097 to 1b9d500 Compare November 3, 2023 09:29
@jesmrec

jesmrec commented Nov 3, 2023 •

Copy link
Copy Markdown
Member

(1) [FIXED]

If device does not have any app to show downloads content, it crashes. Check this in a device without it:

  1. Open Settings > Logging > Log files
  2. Click on down arrow of any log file to download
  3. Click on Go to downloads

Current: app crashes

Process: com.owncloud.android.debug, PID: 29452
                                                                                                    android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW_DOWNLOADS }
                                                                                                    	at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2067)
                                                                                                    	at android.app.Instrumentation.execStartActivity(Instrumentation.java:1727)
                                                                                                    	at android.app.Activity.startActivityForResult(Activity.java:5320)
                                                                                                    	at androidx.activity.ComponentActivity.startActivityForResult(ComponentActivity.java:712)
                                                                                                    	at android.app.Activity.startActivityForResult(Activity.java:5278)
                                                                                                    	at androidx.activity.ComponentActivity.startActivityForResult(ComponentActivity.java:693)
                                                                                                    	at android.app.Activity.startActivity(Activity.java:5664)
                                                                                                    	at android.app.Activity.startActivity(Activity.java:5617)
                                                                                                    	at com.owncloud.android.presentation.logging.LogsListActivity.showDownloadDialog$lambda$3(LogsListActivity.kt:159)
                                                                                                    	at com.owncloud.android.presentation.logging.LogsListActivity.$r8$lambda$DVmW-XLfGnzR9SFJmPO0udbjbZ4(Unknown Source:0)
                                                                                                    	at com.owncloud.android.presentation.logging.LogsListActivity$$ExternalSyntheticLambda0.onClick(Unknown Source:2)
                                                                                                    	at androidx.appcompat.app.AlertController$ButtonHandler.handleMessage(AlertController.java:167)
                                                                                                    	at android.os.Handler.dispatchMessage(Handler.java:106)
                                                                                                    	at android.os.Looper.loop(Looper.java:223)
                                                                                                    	at android.app.ActivityThread.main(ActivityThread.java:7656)
                                                                                                    	at java.lang.reflect.Method.invoke(Native Method)
                                                                                                    	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
                                                                                                    	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)

Expected: No crash, a warning or snackbar instead.

Pixel 2 Android 11
76ed263d

@jesmrec

jesmrec commented Nov 3, 2023

Copy link
Copy Markdown
Member

Approved on my side

@Aitorbp
Aitorbp merged commit b9a33a8 into master Nov 3, 2023
@Aitorbp
Aitorbp deleted the feature/streamlined_log_file_upload_functionality branch November 3, 2023 13:35
@JuancaG05 JuancaG05 changed the title [FEATURE REQUEST] Streamlined Log File Upload Functionality [FEATURE REQUEST] Download log files to device Nov 7, 2023
Aitorbp added a commit that referenced this pull request Feb 5, 2024
…pload_functionality

[FEATURE REQUEST] Streamlined Log File Upload Functionality
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.

[FEATURE REQUEST] Download log files to device

3 participants