protected override void OnRestoreInstanceState(IParcelable state) { try { var savedState = (SavedState) state; base.OnRestoreInstanceState(savedState.SuperState); _slideState = savedState.State; } catch { base.OnRestoreInstanceState(state); } }