Skip to content

Fix crash when using shortcuts while no site is selected yet#10458

Merged
JorgeMucientes merged 2 commits intotrunkfrom
issue/10150-10320-shortcuts-crash
Dec 20, 2023
Merged

Fix crash when using shortcuts while no site is selected yet#10458
JorgeMucientes merged 2 commits intotrunkfrom
issue/10150-10320-shortcuts-crash

Conversation

@hichamboushaba
Copy link
Copy Markdown
Member

@hichamboushaba hichamboushaba commented Dec 20, 2023

Closes: #10150 Closes: #10320

Description

This PR fixes an issue where the app will crash when the user attempts to use shortcuts but not site has been selected yet.

Testing instructions

  1. Open the app then sign in using WordPress.com (an account that has multiple accounts)
  2. When reaching the site picker, close the app.
  3. Long tap on the app's icon in the launcher, then pick one of the shortcuts.
  4. Confirm the app doesn't crash.
  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

The shortcut will be handled once the user selects a site
@hichamboushaba hichamboushaba added the type: crash The worst kind of bug. label Dec 20, 2023
@hichamboushaba hichamboushaba added this to the 16.8 milestone Dec 20, 2023
@wpmobilebot
Copy link
Copy Markdown
Collaborator

wpmobilebot commented Dec 20, 2023

📲 You can test the changes from this Pull Request in WooCommerce Android by scanning the QR code below to install the corresponding build.

App Name WooCommerce Android
FlavorJalapeno
Build TypeDebug
Commit06a5aa5
Direct Downloadwoocommerce-prototype-build-pr10458-06a5aa5.apk

@hichamboushaba hichamboushaba marked this pull request as ready for review December 20, 2023 10:59
@wpmobilebot
Copy link
Copy Markdown
Collaborator

1 Warning
⚠️ This PR is assigned to the milestone 16.8. This milestone is due in less than 2 days.
Please make sure to get it merged by then or assign it to a milestone with a later deadline.

Generated by 🚫 Danger

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (7b76890) 41.75% compared to head (06a5aa5) 41.76%.

Additional details and impacted files
@@            Coverage Diff            @@
##              trunk   #10458   +/-   ##
=========================================
  Coverage     41.75%   41.76%           
- Complexity     4937     4939    +2     
=========================================
  Files           998      998           
  Lines         56360    56361    +1     
  Branches       7500     7500           
=========================================
+ Hits          23533    23537    +4     
+ Misses        30735    30733    -2     
+ Partials       2092     2091    -1     

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

@JorgeMucientes JorgeMucientes self-assigned this Dec 20, 2023
@peril-woocommerce
Copy link
Copy Markdown

Warnings
⚠️ This PR is assigned to a milestone which is closing in less than 2 days Please, make sure to get it merged by then or assign it to a later expiring milestone

Generated by 🚫 dangerJS

@JorgeMucientes
Copy link
Copy Markdown
Contributor

Thanks for handling the crash @hichamboushaba, code looks good and fixes the issue. :shipit:

@JorgeMucientes JorgeMucientes merged commit e7c8e0f into trunk Dec 20, 2023
@JorgeMucientes JorgeMucientes deleted the issue/10150-10320-shortcuts-crash branch December 20, 2023 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: crash The worst kind of bug.

Projects

None yet

4 participants