improve rotation handling

this commit was rewritten/inspired by one made to our jb 4.1 branch by sonicxml.

cheers buddy!

Change-Id: Ib3b46aa54e7bf6602f8c0557ed770624063af529
Clear All button added in Recent Panelview [1/2]

Change-Id: Ia3b722a4cef661ffe67b147e7d458393844c3795