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

Improve accessibility autofill performance #4276

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

david-livefront
Copy link
Collaborator

🎟️ Tracking

N/A

📔 Objective

This PR adds some additional performance improvements to the accessibility autofill by deferring the call to the rootAccessibilityNodeInfo until after all other checks have passed.

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed
    issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

Copy link
Contributor

github-actions bot commented Nov 8, 2024

Logo
Checkmarx One – Scan Summary & Details769f7951-6954-4073-bf0e-99800c37d6df

No New Or Fixed Issues Found

Copy link

codecov bot commented Nov 8, 2024

Codecov Report

Attention: Patch coverage is 85.71429% with 1 line in your changes missing coverage. Please review.

Project coverage is 88.97%. Comparing base (dae50a7) to head (0cd2b05).
Report is 10 commits behind head on main.

Files with missing lines Patch % Lines
...y/processor/BitwardenAccessibilityProcessorImpl.kt 85.71% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4276      +/-   ##
==========================================
- Coverage   88.97%   88.97%   -0.01%     
==========================================
  Files         445      445              
  Lines       38887    38888       +1     
  Branches     5468     5469       +1     
==========================================
  Hits        34601    34601              
  Misses       2369     2369              
- Partials     1917     1918       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@david-livefront david-livefront force-pushed the accessibility-autofill-performance branch from 5645ab3 to 0cd2b05 Compare November 11, 2024 15:54
fun processAccessibilityEvent(rootAccessibilityNodeInfo: AccessibilityNodeInfo?)
fun processAccessibilityEvent(
event: AccessibilityEvent,
rootAccessibilityNodeInfoProvider: () -> AccessibilityNodeInfo?,
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@david-livefront
Copy link
Collaborator Author

Thanks @patrick-bitwarden

@david-livefront david-livefront added this pull request to the merge queue Nov 11, 2024
Merged via the queue into main with commit a8416b0 Nov 11, 2024
9 checks passed
@david-livefront david-livefront deleted the accessibility-autofill-performance branch November 11, 2024 21:32
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.

2 participants