Bug 840147 & Bug 877903 : fix orientation problem on open/close app animation.