altosdroid: Ignore automatic tab changing while activity is saved
authorKeith Packard <keithp@keithp.com>
Tue, 17 Feb 2015 06:22:37 +0000 (22:22 -0800)
committerKeith Packard <keithp@keithp.com>
Tue, 17 Feb 2015 06:22:37 +0000 (22:22 -0800)
commit106b16b4d5d024543d7ad8c4b4762151e253f3c4
tree6e2a29e8eeddc512a64122d8231444fc7556fb25
parente6630ac41ca0d8563cf9a0df5d4acba8192e9624
altosdroid: Ignore automatic tab changing while activity is saved

When the activity state is saved (after onSaveInstanceState()), we
can't update the UI until the activity is restarted or restored; that
means any UI changes we make, like switching tabs, must deal with this
by allowing those changes to be ignored, using commitAllowingStateLoss
instead of commit.

Signed-off-by: Keith Packard <keithp@keithp.com>
altosdroid/src/org/altusmetrum/AltosDroid/AltosDroidTab.java