Bugfix 544: Add dialog with extra checkbox for irreversible actions#720
Conversation
|
Thanks for the PR. |
|
Thanks, I didn't notice it had failed (sometimes I don't get notifications when the build fails). Something is wrong with the tests because they pass in my machine. For some reason, it only fails if I change the locale to en_US.UTF-8. As expected, the problem was introduced in my split-related changes (2353957). I'll investigate what's going on. |
|
ok, that's weird. I just checked it out locally and it builds for me too. |
The user must check a checkbox to enable the delete button. This tries to avoid confirming irreversible actions by mistake. Fixes codinguser#544
Showing an AlertDialog directly from a fragment is discouraged. It doesn't behave properly, for example, when rotating the screen. See https://developer.android.com/guide/topics/ui/dialogs.html
We'll need other dialogs to have double confirmation.
The user must check a checkbox to enable the delete button. This tries to avoid confirming irreversible actions by mistake. Fixes codinguser#544
The user must check a checkbox to enable the delete button. This tries to avoid confirming irreversible actions by mistake. Fixes codinguser#544
TransactionTest.testCreateAutoBalanceSplit assumed a default locale with EUR commodity. The default commodity is set in new Transaction objects, which might change depending on the environment where the tests are run. Now we set it explicitly in the tests.
add808a to
2b0e03e
Compare
|
I've added a commit that fixes the tests. You can reproduce the test failure by adding |
|
Thanks @rivaldi8 |
I haven't found any other dialog that should have double confirmation, apart from the ones mentioned on the issue, but I might've missed some.
Fixes #544.