-
Notifications
You must be signed in to change notification settings - Fork 136
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
Remove duplicate toolbar from package details screen #12576
Remove duplicate toolbar from package details screen #12576
Conversation
…cate toolbar issue.
📲 You can test the changes from this Pull Request in WooCommerce-Wear Android by scanning the QR code below to install the corresponding build.
|
📲 You can test the changes from this Pull Request in WooCommerce Android by scanning the QR code below to install the corresponding build.
|
Able to reproduce using this info. |
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.
Tested and was able to see the second toolbar removed. One note, while testing I encountered this crash. I think it's unrelated, but I can share the repro steps if you want me to ticket it separately:
FATAL EXCEPTION: main (Ask Gemini)
Process: com.woocommerce.android.dev, PID: 9305
java.lang.NumberFormatException: empty String
at jdk.internal.math.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1842)
at jdk.internal.math.FloatingDecimal.parseFloat(FloatingDecimal.java:122)
at java.lang.Float.parseFloat(Float.java:455)
at com.woocommerce.android.model.ShippingPackageKt.toAppModel(ShippingPackage.kt:82)
at com.woocommerce.android.ui.orders.shippinglabels.ShippingLabelRepository.getShippingPackages(ShippingLabelRepository.kt:80)
at com.woocommerce.android.ui.orders.shippinglabels.ShippingLabelRepository$getShippingPackages$1.invokeSuspend(Unknown Source:14)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7872)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@a1c6c7c, Dispatchers.Main.immediate]
Seems to be related to the test address I used.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## trunk #12576 +/- ##
=========================================
Coverage 40.62% 40.63%
- Complexity 5669 5670 +1
=========================================
Files 1228 1228
Lines 68944 68944
Branches 9549 9549
=========================================
+ Hits 28010 28013 +3
+ Misses 38357 38355 -2
+ Partials 2577 2576 -1 ☔ View full report in Codecov by Sentry. |
Thanks for testing and noticing the crash @backwardstruck! I would really appreciate if you could send me the reproduction steps for the crash. Since I'm the exception catcher this week, I can post it on the WooMobileCUW. Thanks! |
Yes, shared here. |
Closes: #12236
Description
This PR removes the duplicate toolbar from the Shipping Package Details screen. This issue was fixed earlier in #12489 but the last minute change of replacing BaseFragment with Fragment made it to reappear.
Steps to reproduce
Testing information
I've tested this on my Pixel 4a device by navigating to Package details screen and ensured just a single toolbar is visible.
The tests that have been performed
Ensure that single toolbar is shown in package details screen.
Images/gif
Before
After
RELEASE-NOTES.txt
if necessary. Use the "[Internal]" label for non-user-facing changes.Reviewer (or Author, in the case of optional code reviews):
Please make sure these conditions are met before approving the PR, or request changes if the PR needs improvement: