FW: settings: arrayList API rework

There is nothing wrong with the current implementation
it just requires some implicit knowledge about the internals
which should not be used for an API added at such a central
location

To reset the value back to "" you must know that setString
musst be used instead of providing just an empty list which
would be a more "logical" approach

With this the client code would also become easier cause
the check for size()>0 would not be longer required
e.g. in RibbonTargets

I would also suggest to change getArrayList so that it
returns an empty list for the case that the value is ""
instead of an list with size 1 and the single item ""

Allthough this would be a change in the API it would
make the API sync with the putArrayList and would also
be the more "logical" return value for this case

I think I have checked all current uses of getArrayList
and as far as I can see that change would have no impact
on the existing code. But please correct me if I am
wrong with this.

Change-Id: I58a34e1238fefbfe088252e785cfed3d8c3acf4b
Signed-off-by: maxwen <max.weninger@gmail.com>
Revert "Frameworks: Ehance toggleNotificationShade feature"

This reverts commit b62e3e500aa264e66f15caa57bcf121c9d03f4b3.

Conflicts:
	core/java/android/provider/Settings.java
Fix SystemUI memory leaks on theme changes.

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

Change-Id: I0ef7ef134029e5deec066d405545b8d9ec58d76b

Conflicts:
	packages/SystemUI/src/com/android/systemui/quicksettings/AirplaneModeTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/BatteryTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/BluetoothTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/DockBatteryTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/MobileNetworkTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/MobileNetworkTypeTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/QuickSettingsTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/WiFiTile.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsController.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryController.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/CircleBattery.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/Clock.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/DockBatteryController.java

Back to out clock.java.
Can not mark the same content of browser page after copy

Marking a text on the web page and then press copy works,
but trying to mark the same text again does not work.
The reason for this is that the selection never gets
cleared in webkit.
The fix, calling cleaSelection in the onDestroyActionMode.
Also added clearSelection when getting an
onConfigurationChange.
Frameworks: recents rearrangement recents + fixes

Recents was and is a crap...already from AOSP...whatever
to avoid animation conflicts with the RAM bar it is moved up.
Due a lot user requests the clear recents is not bottom left
Recents container is now reduced and on bottom off ram bar
so that no visual overlap glitch exist any more. As well the
recents scrollview is more stable and now small 1dp glitches like
the original AOSP implementation. Code cleanup
and some code arrangements.

cheers

Change-Id: I3d4d880a6fa41575b2c9a4de06d289551aa5436d

Conflicts:
	packages/SystemUI/res/layout/status_bar_recent_panel.xml
	packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java
Framework: CustomToggle Improvements (!Advanced)

Remove advanced Preference in favor of:
        If click = null, use longclick icon.
        This is all Advanced vs Basic was, really.
        User confusion might ensue, but ultimately,
        Exact same ability if you set click to null.
        This also clarifies the ShouldCollapse
        Preference through correlation of it not
        Collapsing on-click in basic.
        Also refresh Icons ondemand.

Change-Id: Ia56db7778c89bb38c5e77719e9fa47a9eef4c7eb
Add turn off action to WiFi Tether notification

Change-Id: I320405ed7e90e4c06ecdb127cd4c1cad6bedbcdd
Signed-off-by: Gergely Szell (sethyx) <szell@hu.ibm.com>
Framework: Fix recents animation bug for all

Sometimes doing some other stuff bring ideas up to solve
problems. Google uses a dirty preload animation hack to
animate recents right....we can do the same just more
generalized.....due that all places (hw keys, navbar, SlimPie
and navring) are calling toggleRecents() I implemented the fix
now there to solve it in general. Due of that this commit
reverts commit 20a905c96c6a897226ad2e5a47c9c6b39a0ef040.
as well

cheers

Change-Id: I48aaa85881d8b177c7223a746bd39925f6826066

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/policy/ExtensibleKeyButtonView.java
Not needed anymore.
Merge branch 'jb2' of github.com:CarbonDev/android_frameworks_base into jb2

Conflicts:
	packages/SystemUI/res/layout-land/status_bar_recent_panel.xml
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java