Open voroshkov opened 6 years ago
The app uses a "hack" to prevent unloading its screens from memory upon running setOffscreenPageLimit(4) https://github.com/voroshkov/Chorus-RF-Laptimer/blob/1e01318f48f0c909f864a3713422c2f551f02a34/Android/ChorusRFLaptimer/app/src/main/java/app/andrey_voroshkov/chorus_laptimer/MainActivity.java#L181
But this in unlikely the common practice in Android development. Removing this line crashes the app when switching between screens. I guess this needs to be fixed (remove setOffscreenPageLimit, and prevent app from crashing)
The app uses a "hack" to prevent unloading its screens from memory upon running setOffscreenPageLimit(4) https://github.com/voroshkov/Chorus-RF-Laptimer/blob/1e01318f48f0c909f864a3713422c2f551f02a34/Android/ChorusRFLaptimer/app/src/main/java/app/andrey_voroshkov/chorus_laptimer/MainActivity.java#L181
But this in unlikely the common practice in Android development. Removing this line crashes the app when switching between screens. I guess this needs to be fixed (remove setOffscreenPageLimit, and prevent app from crashing)