-
Notifications
You must be signed in to change notification settings - Fork 136
[REST API] Check Application Passwords status #8150
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
[REST API] Check Application Passwords status #8150
Conversation
|
You can test the changes on this Pull Request by downloading an installable build, or scanning this QR code: |
Codecov ReportBase: 42.96% // Head: 42.94% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## trunk #8150 +/- ##
============================================
- Coverage 42.96% 42.94% -0.02%
Complexity 3484 3484
============================================
Files 685 685
Lines 37305 37316 +11
Branches 4950 4951 +1
============================================
Hits 16027 16027
- Misses 19835 19846 +11
Partials 1443 1443
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
| private fun isGooglePlayServicesAvailable(context: Context): Boolean { | ||
| val googleApiAvailability = GoogleApiAvailability.getInstance() | ||
|
|
||
| return when (val connectionResult = googleApiAvailability.isGooglePlayServicesAvailable(context)) { | ||
| ConnectionResult.SUCCESS -> true | ||
| else -> { | ||
| WooLog.w( | ||
| T.NOTIFS, | ||
| "Google Play Services unavailable, connection result: " + | ||
| googleApiAvailability.getErrorString(connectionResult) | ||
| ) | ||
| return false | ||
| } | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is unrelated to this PR, but I noticed this function is not used anymore (confirmation #6535 (comment)), so I removed it.
|
Nice job there! Everything works as expected @hichamboushaba |
Part of: #8110
Description
Testing instructions
Login
Check when using the app
Note: regarding the last test, we can probably do better, but for now this will do, the user will see the correct error message if they try to sign in to the same site. We'll add some tracking to track the number of cases where this happens, and decide if it's worth improvement or not.
Images/gif
The recording is choppy, I don't know why 😕
device-2023-01-09-174907.mp4
RELEASE-NOTES.txtif necessary.