Fix Issue 1795:Routing is aborted at screen rotation