This is a companion discussion topic for the original entry at https://www.raywenderlich.com/4936497-your-first-kotlin-android-app/lessons/33
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/4936497-your-first-kotlin-android-app/lessons/33
FYI, the app will crash if you do not start the countdown.
In onSaveInstanceState, the call to countDownTimer.cancel() will cause an exception because countDownTimer has not been initialized yet.
@rbondoc Can you please help with this when you get a chance? Thank you - much appreciated! :]
Odd thing happening on emulator when I did this. If the countdown is not yet started the app changes orientation when device is rotated, but if the button is tapped and count down has begun the app does not change orientation at all.