Skip to content

fix(data): handle ClassCastException for Long preferences

Import User requested to merge fix/config-prefs-long-cast into main

Old app versions stored balance/bonus values as Int in DataStore. When reading with longPreferencesKey, ClassCastException is thrown. Added getLongSafe() helper that catches the cast error and returns 0L.

Merge request reports

Loading