damontecres / StashAppAndroidTV

Android TV App for Stash
GNU Affero General Public License v3.0
62 stars 5 forks source link

Fix setting default activity tracking #301

Closed damontecres closed 1 month ago

damontecres commented 1 month ago

Fixes #299

Tracking activity was changed to default to true in https://github.com/stashapp/stash/pull/4710, but this app would default it to false if the server didn't provide a value.

The server won't provide a value by default until the user explicitly changes the setting. This means, for example, a brand new install of server version 0.26.1 would have server-side tracking enabled but would not provide the value in the UI config query. So this app would read it as a null value and translate that to false.

This PR fixes this behavior so that if the server is at least 0.26.0 and no value is provided by the server, it will default to true.