ANDROID: fix resize crash