Replace OnResume method Up in class