yggdrasil-network / yggdrasil-android

Reference implementation for connecting to the Yggdrasil Network from Android devices
MIT License
107 stars 18 forks source link

Optimization and localizations. #27

Closed Revertron closed 1 year ago

Revertron commented 1 year ago

Optimized UI refresh to save battery. Extracted all strings to xml to enable localizations.

The problem was - the updater loop was getting a lot of info from the lib, creating a JSON and so on, every second with no regard to whether UI is visible or not. I've changed that, now this loop gets data from lib if and only if UI is shown.

Apart from that I've extracted all strings from code to xml to enable localizations to other languages.