android: fix resume state