Android app doesn't include Bait Removed when value entered by keyboard instead of slider

Phone: Samsung S20
Android version: 12
Kernel: 4.19.87-24107789 (Thu July 21 2022)
App version: 5.0.4 (cache cleared, new install)

Current Behaviour

When using the keyboard to record bait station data, the Bait Removed field value is not taken into account, so the calculation for the updated bait is incorrect:

  • New bait amount = Bait Remaining + Bait Added (incorrect)
    Trap.NZ - BaitRemoved not applied when entered via keyboard

Expected Behaviour

The experience when using the keyboard to enter field values should match that when using the slider, where the app correctly applies the formula to calculate the amount of bait in the station:

  • New bait amount = Bait Remaining - Bait Removed + Bait Added
    Trap.NZ - BaitRemoved applied when using slider

Steps to reproduce

  1. On the android app, select a bait station to record an update
  2. Tap the field that lists the weight for the Bait Remaining and type a value on the keyboard (e.g. 84)
  3. Tap the field for Bait Removed and type a value on the keyboard (e.g. 56)
  4. For Bait Added, either use the slider or type a value for adding replacement bait (e.g. 84)
  5. The bait station value should be updated to show: <Remaining (84g) - Removed (56g) + Added (84g)> = 112g
  6. Instead, the bait station value incorrectly displays: <Remaining (84g) + Added (84g)> = 168g

If you are aware of this issue, the workaround is simply to use the slider to specify the values, however that’s obviously not ideal if you’re not aware of the issue and are assuming the Bait Removed value is being correctly accounted for.

@iainf We’re looking into this for you

1 Like