Null Downloads Units

Description

On some apps, the "units" for the downloads counter displays "null".

Expected Behaviour

It should be empty for apps that do not have enough downloads to warrant units, and it should be the respective unit for those that do.

Actual Behaviour

Some apps, such as the one in the picture attached display "null".

Steps to Reproduce

  1. Search for RustDesk

  2. Open app page

  3. View downloads

Environment

  • Device model & codename:
  • Android version:
  • Aurora Store version:
  • Installation method:
  • OS:

Logcat

Examples

IMG_20210711_200930

Additional context

Possible solution

I believe the issue is that this app only has 500 downloads, though I have not confirmed this, so there is no unit necessary, but since it is missing the string template displays "null" instead of displaying nothing as it should. I'm not a Kotlin developer so I was unable to determine where the issue was in the source, but it seems like a simple fix.

Edited by Matthew Toohey
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information