commit | 128d859aa0e678971c85d00d4417c9ca79a8b702 | [log] [tgz] |
---|---|---|
author | zachh <zachh@google.com> | Wed Dec 20 14:32:47 2017 -0800 |
committer | Eric Erfanian <erfanian@google.com> | Fri Dec 22 08:55:15 2017 -0800 |
tree | a321c959b6c0042126f6f44d95a4b7fc8cd4789f | |
parent | 6456d8302885e9c6f24d678fca798b730d101a17 [diff] |
Fixed crash in UiListener when launching activity with screen off. When launching MainActivity with the screen off (e.g. from Android Studio) the application would crash due to: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState Also use FragmentPagerAdapter in MainPagerAdapter as the number of tabs is small and can be stored in memory. Test: manual PiperOrigin-RevId: 179734952 Change-Id: Ib2ca9674f3174493da55bbbf0ef4053fcf73ab47