ADD: onPreResume() and onPreRestart() in ActivityLifecycleCallbacks2.