Framework: fix double-underscore derp

Change-Id: I6317ac69fa1972929f1baa854e79295496669c14
Camera Tile : Close on flip/switch

Currently the camera tile only checks whether the
container panel is fully expanded. This doesnt take into account
when the user swipes to another panel via handle bar swipe, or by
pressing the switch button in the top right of the drawer.

Reproduction steps :
    Go to quick settings panel
    Enable camera tile
    Switch to notifications via swipe or switch button
    Camera preview stays persistent behind drawer

This patchset also makes the view hierarchy lookups one time, rather than
on each runnable run which is quite frequent (100ms).

Change-Id: Ic803744b63613d1e58b3efd4a92d052a16e5a2bd
Merge "Framework: fix double-underscore derp" into cm-10.2
Merge pull request #26 from CyanogenMod/cm-10.2

Camera Tile : Close on flip/switch