Fix bug 6418. 5114
Do not let activity destory when lock screen.
Dymatically adjust scale of document after request resize.