please move logic to `onResume` directly.