[yanan] fixed the bug of onResume visibility-change strategy and login error