Fix translatability of External media format message

Change-Id: I10c76ff40012f982fd7b75ac383ad29a6e698179
(cherry picked from commit a58f1b773824165becf12915909836e63e901c06)
SystemUI: fix up navigation cursor keyevent flags

Volume cursor controls use slightly different flags to keep the cursor
within the field. Match them in the SystemUI for consistent (and better)
behavior.

Change-Id: I56d597f111ec611b0ca24a10f30575401fa76d18
Signed-off-by: Roman Birg <roman@cyngn.com>
(cherry picked from commit c8a09a315f90976ad6b59c616ed5910a3b8cb369)
MountService: Check for null pointer when looking for vold code

* There is actually no code path that will set an event into
  NativeDaemonConnectorException, so any reference to the event code
  will result in a null pointer exception, taking down MountService and
  the rest of the system with it.

Change-Id: Id62f724953aacc363b3455584c6a3ad1381c6138
(cherry picked from commit 80060a28bd9ed0cadcdeecce5101ba7d28743d5d)
Revert "listview: ensure active views are filled prior than scrap views"

This reverts commit 830a0024f1de9655d50c703ed1d10a81005db40e.

See http://review.cyanogenmod.org/#/c/67348/

Change-Id: I066e6ee8d9dc478c752ecfa161fd638bce7cee40
(cherry picked from commit d0ab077d2eaf522f85dc5e64663f641ebaa30147)
SystemUI: fix up initial cursor down flags on nav bar

We were using the regular flags for the initial ACTION_DOWN event so the
FLAG_KEEP_TOUCH_MODE was not being passed and allowed the cursor to jump
out of bounds slightly.

Change-Id: I5b4d2a5e5e0ce562985fcc3b7b6fac8b4abc49da
Signed-off-by: Roman Birg <roman@cyngn.com>
(cherry picked from commit 401f1be7ab41826f91d809bfb17ee7985fed9481)
SystemUI: fix nav bar layout while toggling cursor keys with an IME up

Previously there was no option to have the IME up on that settings
screen so this was not a concern before; however, with the addition of
searchable settings, it seems users are now trying to toggle it with the
IME active, putting the nav bar in a strange state becuase it did not
restore the previous states properly.

Change-Id: Ib03ff3d9ee9679819eaa42644796e8f9eae6e694
Signed-off-by: Roman Birg <roman@cyngn.com>
(cherry picked from commit 5f91bf05d782b816e16a118544fcc901452f5894)
Do not launch floating window when on default launcher

We only do this when user is on the default launcher
because if the user was on a non-default launcher,
he/she must have been there for some purpose and we
do not want to throw him/her back to the default
launcher incase he/she exits the app with HOME button.

(cherry picked from commit b56d64e738f09addac7aebd32803f324d769cd73)
LN: Some fixes & cleanup

- Fix bug that the notification is launched when a button on it is pressed
- Show new notifications first

Change-Id: I87db92a7ee4eb9329ec1ec69008e612a619d5c91

Conflicts:
	packages/Keyguard/src/com/android/keyguard/NotificationHostView.java

(cherry picked from commit f16f127a2b3f0f1439c85cb4e9ff58b85ac196c9)
LN: Fix FC on launching hangouts notification

Change-Id: Idf411bd2b4995f0b53767e99597efd98ce0596b3
(cherry picked from commit 0a388b502093e0998637d1f0428aef2687588c09)
LN: beautify

Change-Id: I695846412f2b8c910f8a5cf48da2bf6ac42e124e

Conflicts:
	packages/Keyguard/res/layout-land/keyguard_host_view.xml
	packages/Keyguard/res/layout-port/keyguard_host_view.xml

(cherry picked from commit c014b19235e575c1b60176cbb1e8b474fe06284b)
Fix thumbnail bug

When there was no thumbnail for a given image, the getThumbNail() convenience
method could return a previously-returned thumbnail instead of null.

b/15771860
https://code.google.com/p/android/issues/detail?id=40714

Change-Id: Ibd18e048145bf347469f800afdf436247ea6b693
Signed-off-by: houst0nn <houstonn@gmail.com>
(cherry picked from commit 51c9666f4a62ad217c6b48a82ad6779b8c2effa0)
Restore pre-KitKat permissions to external sd for all apps

Change-Id: Ib3ff52bcc47fd36e8f3fc5aefeaae4e56180e7c6

Patchset: 2
http://review.cyanogenmod.org/#/c/62028/
(cherry picked from commit 51199df2bbbb08b014a8027d5088c4b017075e45)