Add missing ACTION_MEDIA_UNMOUNTED intent

When an SD card is removed without the user unmounting, the intent
ACTION_MEDIA_BAD_REMOVAL is fired but is missing the preceeding
ACTION_MEDIA_UNMOUNTED which is needed to keep UI consistency.

Now when bad media removal is detected an ACTION_MEDIA_UNMOUNTED
intent is sent before the ACTION_MEDIA_BAD_REMOVAL.

Change-Id: I133300f42bafab141351e796d7cfc13c15d133e0
Fix the flipping animation sometimes being played when pulling the quick
settings with two fingers.

Commit c5e8dca7f11d3c085dd1e98692fcc21f1bcc0f6f already tried to fix
this before, but was incomplete (and incorrect). The actual issue is
that on the first pointer down event, a 'peek' animation runs and
expands the notification panel by some pixels (on mako: 160). This
amount of pixels is significantly larger than the handle height (on
mako: 72). Depending on the timing between peek animation and the second
pointer down event, the flip animation would play (if animation already
revealed more than 72 pixels) or not.

Fix that by not playing the flip animation if only peeking, as the
actual panel content is not visible at that point anyway. Also remove
the previous incomplete fix in the process.

Change-Id: I8997dc7b70143940a519f41da29ffd4d738d8d0c
core: EL translations

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

Change-Id: I002f18400ed300616739ea067dd051fdcc174c6b
Detect whether overflow button should be shown based on menu key state

Some devices may have hardware keys but not contain a hardware menu key.
Hardware keys are also able to remapped. The overflow button detection logic
currently does not take that into account. This change allows detects
whether any key is capable of emitting the MENU_ACTION keystroke in
order to determine whether the overflow button should be shown or not.

Change-Id: I8699bd0242560314f8eadc54b187c69c992cf875
Merge "Add missing ACTION_MEDIA_UNMOUNTED intent" into cm-10.1
Merge "Fix the flipping animation sometimes being played when pulling the quick settings with two fingers." into cm-10.1
Check themes of current user, not user 0.

Change-Id: I5d685a04289b434a12e460b4fdacc43a41ff2be1
JIRA:CYAN-1303
Merge "Check themes of current user, not user 0." into cm-10.1
Lockscreen : Use correct filter for background

Switch over to SRC_ATOP filter instead of using MULTIPLY.

Change-Id: I6b8dac563136cd10b48b6fc6c0ecb2265d0e0b04
NotificationManagerService: fix typo on led off time variable

Change-Id: Iade96474c26dbeb3a5a671170f563220562d9b3c
Finally fix incorrect flipping to quick settings.

Commit f6685c5ca84a42f5a47bf40827d6229dd998dee4 fixed this for the
two-finger pulldown. It reverted commit
c5e8dca7f11d3c085dd1e98692fcc21f1bcc0f6f in the process, which was
incorrect, but fixed another condition of this problem occuring
nevertheless. The actual problem the latter fix tried to fix was that
the flip decision was dependant on the timing of the view layout:
getMeasuredHeight() returned whatever was set in the last layout, which
might not have happened when hiding the view, so at the time of the next
ACTION_DOWN getMeasuredHeight() returned the height from the time the
panel was last visible.
Fix that problem by using the height scheduled for the next layout, so
we're always up-to-date.

Change-Id: Ib97f34f9aa0a6f28d48b4ec3e16c82a814cda0d0
Reduce number of binder calls by saving nav bar state

Change-Id: I3729d05a34a661cb74e998c40b61c615cdbf83a6
frameworks/base: Simplified Chinese Translations

Copy of http://review.cyanogenmod.org/#/c/43192

Patch Set 2: Trigger Cid.

Change-Id: I397ea5616f4474e8b1c5cd1d39bd7f96b210f443
Merge "Reduce number of binder calls by saving nav bar state" into cm-10.1
Fix incorrect fragment animation used for hiding fragments

Mirror of support lib patch
https://android-review.googlesource.com/#/c/60032/ into
frameworks/base.

AOSP Commit: https://android-review.googlesource.com/#/c/60167/

Change-Id: I8d1cb2e217721336674b8e3e2ef8722a8d9baefd
change "next" to "done" in minute IME option under 24-hour format

We don't need "next" button under 24-hour format any more.
So, we changed from "next" button to "done" in IME option
when setting minute under 24-hour format

AOSP commit: https://android-review.googlesource.com/#/c/54121/3

Change-Id: Ic9b1673248183060ba7279b63648a85dc39ca3b9
Fixing crash in PhoneNumberUtils getNumberFromIntent

Handling intent with no data when trying to retrieve number from
intent.

AOSP commit: https://android-review.googlesource.com/#/c/57890/

Change-Id: If7c5930e7048aec732fb7a3fbeb3391e1408b071
Merge changes Ic9b16732,I8d1cb2e2 into cm-10.1

* changes:
  change "next" to "done" in minute IME option under 24-hour format
  Fix incorrect fragment animation used for hiding fragments
framework: Update German translation

Patch Set 1-2:  * revert all unnecessary changes
                  in strings.xml
                * move strings from strings.xml
                  to cm_strings.xml
                * add missing translations

Patch Set 3-4:  * use unicode for ellipsis
                * rename strings after comments

Patch Set 3:    * use 'UKW' instead of 'FM'

Patch Set 4-5:  * add all missing strings

Change-Id: Ic19896d6d8fa0411d8a8119bccca367daa385c06
Merge "framework: Update German translation" into cm-10.1