Fix context actions and shape releasing for Android.