mkulesh / microMathematics

microMathematics Plus - Extended visual calculator
GNU General Public License v3.0
561 stars 68 forks source link

The app content may disappear after rotating on an emulator where a big document is open #141

Open mkulesh opened 4 months ago

mkulesh commented 4 months ago

Follow-up issue after #136: After rotating an emulator where square_wave_oscillator example is open, the content disappears and app is not more usable.

Analysis: in the onCreate method, also check whether the input bundle is empty:

instanceStateEmpty = savedInstanceState == null || savedInstanceState.isEmpty();

instead of

instanceStateEmpty = savedInstanceState == null;

Note: this problem is only observed on an Android 14 emulator, not on a real device.

mkulesh commented 4 months ago

Released in version 1.24.