QuickSettings: cleanup
Removed unnecessary references to QuickSettingsContainerView, LayoutInflater
Tile layout is set by constructor

Change-Id: Ied57bf6613594864db0201c2af514fbe4bb651ed
Revert "QuickSettings: cleanup"

This reverts commit d5653bd2443cd73329b73b837c19ce5f0a3291af.
SystemUI: Add Expanded desktop tile to QuickSettings (2/2)

    * Patch Set 1: initial commit
    * Patch Set 2: change tile title
    * Patch Set 3: change tile title again
    * Patch Set 4: updated to suggested drawable by blunden
    * Patch Set 5: update drawables to fit to the bahavior of
                   the other icons used in QS
    * Patch Set 6: rebase
                   only display tile if feature is enabled
    * Patch Set 7: launch the proper long press activity
    * Patch Set 8: correctly hide tiles if ED or profiles are turned off
		   style fixes

Signed-off-by: Paul Beeler <sparksco@gmail.com>
QuickSettings: cleanup
Removed unnecessary references to QuickSettingsContainerView, LayoutInflater
Tile layout is set by constructor

Signed-off-by: Paul Beeler <sparksco@gmail.com>
Fix Photosphere/Camera FCs

Photosphere is setting a few parameters "blindly"
while the API says it should check the device capabilities first.

On TF101 (and probably other devices) the camera HAL doesn't handle
FLASH_MODE & SCENE_MODE and so it sends the required RuntimeException
for these, which makes Photosphere FC the Camera app.

=> Fix: check device capabilities & ignore these 2 parameters if the device doesn't support them.

Fix based on following Team EOS patch: https://review.teameos.org/#/c/1598/

Change-Id: Idd80299802e9213a3c40414ace3d516d39f47783
Faster statusbar
Merge branch 'sm-jb-mr1-qs' of git://github.com/SaberMod/android_frameworks_base into sm-jb-mr1-qs
Fix SystemUI memory leaks on theme changes.

ContentObserver and BroadcastReceiver instances were dangling after the
status bar was recreated.

Signed-off-by: Paul Beeler <sparksco@gmail.com>
Cleanup.

Signed-off-by: Paul Beeler <sparksco@gmail.com>
QS: Don't assume observers are registered when dealing with changes

Not all uri activity has an associated content observer. Poking
the content://settings/system provider manually, for example,
would result in the following NPE:

AndroidRuntime: FATAL EXCEPTION: main
AndroidRuntime: java.lang.NullPointerException
AndroidRuntime:        at com.android.systemui.statusbar.phone.QuickSettingsController$QuickSettingsObserver.onChange(QuickSettingsController.java:354)
AndroidRuntime:        at android.database.ContentObserver$NotificationRunnable.run(ContentObserver.java:180)
AndroidRuntime:        at android.os.Handler.handleCallback(Handler.java:725)

Change-Id: I7034d261804aa972fe9020dd9b602348d249cb33
Merge remote-tracking branch 'sm/sm-jb-mr1-qs' into sm-jb-mr1-qs