Closed johneastman closed 3 years ago
The onDestroy lifecycle method is not always called when the user exits or minimizes the app, so data is not saved every time.
onDestroy
Fix: Add saving to onPause and onStop lifecycle methods.
onPause
onStop
https://github.com/johneastman/Shopper/commit/cfcc81f6dde02f59ae906fcf87db4a4baa2b411a
The
onDestroy
lifecycle method is not always called when the user exits or minimizes the app, so data is not saved every time.Fix: Add saving to
onPause
andonStop
lifecycle methods.