Fix frontOfTask assignment.

If all activities of a given stack were finishing, no activity was
marked as front-of-task. This confused ActivityManager, so make sure
there's always exactly one activity marked as front-of-task.

https://android-review.googlesource.com/#/c/98918

Change-Id: I087cbe10280d4a60aa5ccfaefe24a223523fb3f2
fix OmniTorch start from QS after firstboot/reboot

make this call FOREGROUND only so OmniTorch will start after system ready

Change-Id: I65d8f2adcd302e9a2b755178dc8c9c71018a359d
Base: QuickSettings: fix text size on landscape

Change-Id: I043ee71aa8b4e74fd8038fca7613e22b73c81ff5
Base: Allow unregister Callback and Controller

Battery, Bluetooth, Network, Location controller
always set callback without release them if callback owner is missing

add this method to unregister the callback to prevent memory leak

fix whitespace

Change-Id: I0d6451ddfb681bd5301e7958e20d2462d4a82039
Merge "Fix frontOfTask assignment." into android-4.4
base: added charging animation for battery percent style

Inspired from circle style

http://jira.omnirom.org/browse/OMNI-840

PS3:
-using bar style

PS8:
-again full height band

Change-Id: I5a83cd7ea6fa437a9bdf0e9b4451071a591cd3b5
DocumentsUI: fix recursive delete

Create one DirectoryLoader in UI thread to use for delete

Change-Id: I83a5811f152090f7812ad58ff4ee3bc13748d158
Externalize symbol picker options to resources

Having the symbol picker options in resources allows a change to be made for
a specific device, and even for a specific locale (change in overlay).

Ported from cm10.2: http://review.cyanogenmod.org/32581

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: I72ff6fab6b9c14f9761904fdcc6918784d790d4d
Base: QuickSettings: Use DeviceUtils to determine NFC support

PS 2: fix whitie

Change-Id: I94aa467ea9a025abdaa519a05da44c803bfac9d1
[1/2] base: make swap volume buttons RTL aware

based on https://gerrit.slimroms.net/#/c/10541/

Change-Id: I1f2f9f59a14a812438e9907d8a6c06507e481834
[1/3] Base: QuietHours: allow disable system sound

taken from slimroms

https://gerrit.slimroms.net/#/c/12180/

Allow to disable :
1. DialPad tone
2. touch sounds
3. screen lock sound
4. volume adjust sound
5. dock sound

in quiethour time

Change-Id: I2a1a7949ac6bdc48376980fac8ad2ae2c90fdfc9
base: fix NPE in percent battery onDraw on boot

Change-Id: Ia1e16681730538ebb56a0fe8a0b49dc3174be2e7
Merge "[1/3] Base: QuietHours: allow disable system sound" into android-4.4
base: add support for using the flip switch to turn off the screen

Allow the flip cover to turn off screen when closed, turn on screen when opened.

See also https://gerrit.omnirom.org/#/c/8871/ for device implementation.

Change-Id: I3457af831bf5e9cd2d49efda52fb5961fee5d68f
Merge "base: add support for using the flip switch to turn off the screen" into android-4.4
base: add support for timelapse qualities for 4k sizes

Fix check in MediaRecorder to include all timelapse profiles

Change-Id: I32b00c5d05da0b1e440e9b0f50d0981e6afaf648
Merge "base: add support for timelapse qualities for 4k sizes" into android-4.4
Merge pull request #5 from omnirom/android-4.4

jñokñkñ