public override void OnAction(Action action)
{
switch (action.wID)
{
case Action.ActionType.ACTION_PREVIOUS_MENU:
// restore current user
PreviousUser = CurrentUser;
CurrentUser = TraktSettings.Username;
base.OnAction(action);
break;
case Action.ActionType.ACTION_PLAY:
case Action.ActionType.ACTION_MUSIC_PLAY:
PreviousUser = CurrentUser;
CheckAndPlayEpisode(false);
break;
default:
base.OnAction(action);
break;
}
}