Skip to content

Fix conflicts#1117

Merged
jaymengxy merged 8 commits intodevelopfrom
fix_conflicts
May 28, 2025
Merged

Fix conflicts#1117
jaymengxy merged 8 commits intodevelopfrom
fix_conflicts

Conversation

@jaymengxy
Copy link
Copy Markdown
Contributor

Related Issue

Closes #???

Summary of Changes

Need Regression Testing

  • Yes
  • No

Risk Assessment

  • Low
  • Medium
  • High

Additional Notes

Screenshots (if applicable)

lmcmz and others added 8 commits May 13, 2025 10:58
Merge verified/unverified token fixes to master
Merge wc debugging and token issues
Merge r2.8.5 from develop to master
Merge r2.8.5 with code 288 from develop to master
* Hot fix - telegram deep linking
* Hot fix - telegram deep linking (#1074)

* Hot fix - telegram deep linking

* Hot fix - telegram deep linking

* Hot fix - telegram deep linking

* Hot fix - telegram deep linking

* Hot fix - telegram deep linking

* Hot fix - telegram deep linking

* WC deep linking

* WC deep linking

* fix: update the version code

---------

Co-authored-by: Lea Lobanov <44328396+lealobanov@users.noreply.github.com>
@jaymengxy jaymengxy requested a review from a team as a code owner May 28, 2025 04:48
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 28, 2025

PR Summary

Enhanced WebView functionality and deep linking implementation by improving URL handling, cleaning up code, and optimizing imports. Improved error handling for null URLs and added better logging for URL processing in WebView. Removed unused imports in deep linking utils.

Changes

File Summary
app/src/main/java/com/flowfoundation/wallet/page/browser/widgets/LilicoWebView.kt Enhanced LilicoWebView with better URL handling and null checks. Improved code organization in shouldOverrideUrlLoading() with clearer request validation, blocking checks, and URI processing. Added logging for debugging URL navigation.
app/src/main/java/com/flowfoundation/wallet/page/component/deeplinking/Utils.kt Removed unused imports including Env, ioScope, URLDecoder, and StandardCharsets to improve code cleanliness in deep linking utilities.

autogenerated by presubmit.ai

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

🚨 Pull request needs attention.

Review Summary

Commits Considered (8)
  • cef301e: fix: merge conflicts
  • b5b4c10: Merge r2.8.5 with version code 290 from develop to master (#1079)
  • Hot fix - telegram deep linking (#1074)

  • Hot fix - telegram deep linking

  • Hot fix - telegram deep linking

  • Hot fix - telegram deep linking

  • Hot fix - telegram deep linking

  • Hot fix - telegram deep linking

  • Hot fix - telegram deep linking

  • WC deep linking

  • WC deep linking

  • fix: update the version code


Co-authored-by: Lea Lobanov 44328396+lealobanov@users.noreply.github.com

  • Hot fix - telegram deep linking

Merge r2.8.5 with code 288 from develop to master

Merge r2.8.5 from develop to master

Merge wc debugging and token issues

Merge verified/unverified token fixes to master

Pre-release 2.8.4

Files Processed (2)
  • app/src/main/java/com/flowfoundation/wallet/page/browser/widgets/LilicoWebView.kt (5 hunks)
  • app/src/main/java/com/flowfoundation/wallet/page/component/deeplinking/Utils.kt (2 hunks)
Actionable Comments (1)
  • app/src/main/java/com/flowfoundation/wallet/page/browser/widgets/LilicoWebView.kt [276-279]

    possible bug: "Potential null pointer dereference in URL handling"

Skipped Comments (1)
  • app/src/main/java/com/flowfoundation/wallet/page/browser/widgets/LilicoWebView.kt [285-287]

    best practice: "Hardcoded URL string comparison"

Comment on lines 276 to 279
if (request?.url == null) {
logd(TAG, "shouldOverrideUrlLoading: Request or URL is null")
return super.shouldOverrideUrlLoading(view, request)
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The null check request?.url == null will pass if either request is null or request.url is null. However, the subsequent code directly uses request.url without null safety checks. Consider using a safe call operator or explicit null checks:

if (request == null || request.url == null) {
    logd(TAG, "shouldOverrideUrlLoading: Request or URL is null")
    return super.shouldOverrideUrlLoading(view, request)
}

@jaymengxy jaymengxy merged commit 103236e into develop May 28, 2025
2 of 3 checks passed
@jaymengxy jaymengxy deleted the fix_conflicts branch May 28, 2025 04:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants