FIX Null Pointer Exception on dialog cancel

Null Pointer Exception occurs because mWebViewCore instance
is made to null while calling destroyJava(). When
1.webview hosting activity goest to background, without calling webview onPause().
2. If app is launched again (having launchmode:singletask ) and another activity (not  webview hosting) comes on top top.
3. It destorys the previous activity holding webview which internally tries to cancel the dialog, but webviewcore instance is null.
Null pointer exception is raised.

Change-Id: Idbcd30d0b0d4a35819444bbaa5c73cced8bb35a3
Signed-off-by: Amit Kumar <amitkecian@gmail.com>
FW: Ribbon - Toggles

Fix for some toggles not getting set properly
fix user toggle fc
fix some toggles hieght being HUGE

respect users click vib setting.

respect ribbon padding

sync custom toggle if in multiple places

fix theme issues.

Fixed Icon from Nitroz

Change-Id: Ia225e822485b715e6daddeb7b62e232e72db5e36
Merge "FIX Null Pointer Exception on dialog cancel" into jb-mr1
Fix NPE when pasting non-text from Clipboard

When copying a link from a bookmark and then pasting it into
a textfield a NullPointerException will occur.
A ClipData.Item is not guaranteed to always contain a text string
and therefore getText() can be set to null.

Using method coerceToText() instead of getText() makes sure that
a text string is always returned.

Change-Id: I81343c0371835a3a7a52045dcd1760e69e59a967
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.

Change-Id: I59b384cb5441b6a3a05007ea7e77f9699889a87c
Audio continue to played even if paused manually

Currently, audio will resume playing after a phone call
or notification even if the user had manually paused playback.

This patch addresses that by introducing a new player state
to distinguish the user pausing playback and the browser
losing audio focus for some other reason. Audio will only
 resume if the browser temporarily lost audio focus and
not when the user has manually paused playback.

Change-Id: I9e8beaedb0fcc5afe920068297ed9c387eab2ac8
Signed-off-by: Roger Chen <cxr514033970@gmail.com>
Merge "FW: Ribbon - Toggles" into jb-mr1
SystemUI: WirelessADB Toggle

* Allow, when connected to WiFi, the utilization of the android debug bridge.
* When enabled, the label will show the current WiFi's IP address.

Change-Id: Ib87d4d70106bde14bf927f615edfb62af464be83
Signed-off-by: bmc08gt <bmc08gt.teamb00sted@gmail.com>
Revert "Can not mark the same content of browser page after copy"

This reverts commit 660f4ae57545f3fa1aef2867ca2050f118e72b93

Change-Id: I7d601db85ce74ed61d07265ac3ff461b2ca941e9
Merge "Revert "Can not mark the same content of browser page after copy"" into jb-mr1
Update Japanese translation

Change-Id: I2ff6e932483393ac2c1d3b7384f7b10656778156
Signed-off-by: rdgate <rdgate@gmail.com>
Fix WirelessADB Toggle & build

Change-Id: I4d53a372e525fead4e34cb4c1405a710e22f2543
Signed-off-by: Gergely Szell (sethyx) <szell@hu.ibm.com>
Merge "Update Japanese translation" into jb-mr1
StayAwake Toggle : Avoid Loss of User Setting

Should disable the tendency to revert to 30
        second timeout if SystemUI dies
        while stayawake is enabled

PS2: Fix
PS5: Dependency
Change-Id: I42e0edb96eeccce690481df1a0cd6e4767ac486e
FW: Ribbon Fix swipe ribbon and toggles for TabletUI

Change-Id: I06408c0025001a7436342115c07055514bb3fd8c
Signed-off-by: Stevespear426 <stephen.k.spear@gmail.com>
Merge "Audio continue to played even if paused manually" into jb-mr1
Merge "StayAwake Toggle : Avoid Loss of User Setting" into jb-mr1
Merge remote-tracking branch 'upstream/jb-mr1' into jb-mr1