settings: TRDS some tweaks and fixes (2/2)

some smaller issues fixed and optimizations:

- fix twilightmode was wrong assigned to wrong value
- ligtsensor mode after first immediattely switch it does
  not allow for 5sec to switch again....after the 5sec it switches
  to current state if the sensor changed its state in this time.
  This prevends on the one hand on bad light conditions a permanent
  switch between dark/light as well it does not bring the system into
  troubles due of to much configuration changes at the same time
- get rid completly of the observe for the UI_THEME_MODE value and
  handle all over the UIModeManager
- adapt slimActions and settings to this new behaviour/method
- some cleanup and minor fixes

Change-Id: I099eb70f179149bcc519a209b93063529349f1e2
Merge "settings: TRDS some tweaks and fixes (2/2)" into kk4.4
Forward Port: Hide USB Debugging Icon 2/2

Change-Id: Ide823f42070b7b472308658fc85efb5b43f83b01
Commit Ide823f42070b7b472308658fc85efb5b43f83b01 translated to Russian

Change-Id: I628073b03de95f78f217fb6b2b0d388cfea4a85f
Storage Settings: Allow user to trigger a volume rescan

This change allows to trigger a rescan of a volume with the next restrictions:
- Internal volumes if they are emulates
- Primary volumes
- Non-Removable volumes

rebase

Change-Id: I7e75a324938d8081fd715f702d50f1fdceabd96d
Settings: Fix Activity Names

When entering an activity directly
	(via quicksettings, for example)
	the activity name is pulled from
	the manifest rather than the
	preference title. Small fix needed.

rebase

Change-Id: Ic0eb1cb2b0af6ff7dc7eac0a17c015a2386770c8
Settings: Fix Tile Index

If user deletes all tiles:
	Array string would dump an empty
	value for index zero.  Thus,
	changing individual tile settings
	would be off by one. Create a new
	array in this case as a fix.

rebase

Change-Id: I49b5940fc4e341313bde9087059babc5472417ad
Merge "Storage Settings: Allow user to trigger a volume rescan" into kk4.4
Merge "Commit Ide823f42070b7b472308658fc85efb5b43f83b01 translated to Russian" into kk4.4
Commit I7e75a324938d8081fd715f702d50f1fdceabd96d translated to Russian

Change-Id: I77468d13d21546d3ec2ad996285d57ad955dca97
Updated Hungarian Translations

Change-Id: I805cf5d8bc303b4e4f72e9e6fe358fef47c41002
Settings: fix led pulsespeedoff disable behaviour

Keep led pulsespeedoff disabled if pulsespeedon is
disabled.  This ensures that pulsespeedoff stays
disabled if onOffChangeable was set to false.  Fixes
problem where charged led pulsespeed off looks to
be configurable in the ui and thereby creating user
confusion.

Change-Id: I6ac7f630544bf719b39e1ddcab435322975430c8
Settings: recover last location state during on/off switch

based on the behaviour change on QS here:

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

we go now same way in settings. Tbh not sure what the goal is to
force the user after switching off to enable always high accuracy
location. Whatever we use here same attempt like in QS tile....if the
user switches on again it recovers the last enabled state.

Change-Id: I887e2a94af379770dac7dbedb5d3d8002a554163
Settings: Add LongClick SwitchButton (2/2)

Change-Id: I97393ff5c2ae46f8193fb3be8bd723ecc09e3ebc
Settings: ES translations

Change-Id: I5bd3c3bd6f9b9f02a72c1289aad160e4019f62ff
Apn settings fixes / code maintainence (1/2)

Cleanup unecessary resources and use global ones
  - This fixes the duplicate id issue currently causing apn's to be un-editable

Bring the ui aspect of the preference up to speed with ics
 - Use ics highlight / layout...etc
 - Use fragments

Patchset 5 : Remove theme for ApnEditor
             Use static access for variables
Patchset 6 : Launch apn editor internally as a fragment
	     Replace deprecated managedQuery with CursorLoader

Apn Settings : Fix panel title

Show appropriate apn editor title

Change-Id: I1f9dbce5dbf464db79d7c2fbedb8f833e4b46468

Settings - add an AlertDialog before to delete APN to avoid fails

patch 1: fix blank space
patch 2: remove FR translation and change NegativeButton string
patch 3: improve the NegativeButton (thank you, David)
patch 4: remove create()

Change-Id: I3361d4160a7e1c4eaee094f08c7d212f71e9e0e7

* Forward port, adjusted for 4.4

Change-Id: Ie63fa1018ffb7bc419e4d7915419657de30f5b22
Fix FC when trying to adjust radio band via *#*#4636#*#* dialer code.

Fixes:

1. Add additional strings to BAND_NAMES array for additional bands from ril.h
2. Fix logic when adding band strings to selection list (for loop ends before entire array is read)

Change-Id: I5ff883a469f757a30c71d7d72c8f6ace19ce7a4d
Signed-off-by: Andrew Xie <andrew.w.xie@gmail.com>
(cherry picked from commit 4845045bb2dfd9b1a67f9f0c62bb44bfc5152284)
Always show band 0

None of the phones I tested ever displayed Automatic band selection as a
choice, probably because no baseband is going to report it supports
mythical band 0. Make sure it is always displayed.

Change-Id: I5082b04ee63a2916941fd1db40762fa990d59583
settings: fix exception in BatterySipper.getQuickNameIconForUid

placeholder

Change-Id: I4da880532788de78debffe594faf08eee0389014
Merge "Settings: recover last location state during on/off switch" into kk4.4