static void RefreshStateActivity() { if (mUpdateState) { mUpdateState = false; CurrentElement.SetState(mNextState); } }