DialogFragement: Add null pointer check for mDialog for protection

DialogFragement can be dissmissed just after the Dialog is
established. This will cause NullPointerException.

Add null pointer check for mDialog for protection

CRs-fixed: 549689

Change-Id: If57f81d03a8ec2906598363b681ea38806fb2a90
SystemUI: Make percentage appear for hidden batt

This commit makes the battery percentage appear in QS when the user
chooses the "hidden battery" option as the battery style. Prior to
this commit, the same battery style was used for the QS tile just
without the percentage indicator. This means no major changes are
being introduced but the usability is being improved as the user
can glance at the QS tile to see the exact percentage instead of
being forced to open the linked Settings page.

Fixes AOSPA-687.

Change-Id: I2131332f2639721f99e149d3add0eb2877b4debe
Merge "DialogFragement: Add null pointer check for mDialog for protection" into kitkat
NotifcationManagerService: Instant led test fix

missing conditional statement needed to complete CyanogenMod's Instant led test (http://review.cyanogenmod.org/#/c/57347/)

Signed-off-by: cj360 <ayunker551@gmail.com>
Signed-off-by: Andre Saddler <dresadd09691@gmail.com>
Change-Id: Ie93938087112685f324b9b856523b61792885251
Merge "server: make clat interface name public" into kitkat
Merge "Add CAP_BLOCK_SUSPEND Linux capability to system server" into kitkat
Merge "Reduce total number of background apps for low memory devices" into kitkat
Merge "frameworks/base: Update timelapse quality check" into kitkat
Merge "libmediaplayer: update MIME types to include DASH support" into kitkat
Merge "When mInputText isn't on focus, hide the soft keyboard" into kitkat
Merge "Make sure that items are visible" into kitkat
Merge "framework/base: Create surface based on the panel orientation." into kitkat
Merge "ChooseTypeAndAccountActivity: Fix the Null pointer Exception of monkey test" into kitkat
Merge "Bluetooth: Fix to avoid object leaks during BT OFF" into kitkat
Merge " Audio: SetForceUse config check in AudioService" into kitkat
Merge "Mms: Fix FC issue that when tapping contact icon many times" into kitkat
Merge "QuickBoot: don't wake up screen when usb connected" into kitkat
Merge "framework/base: Handle P2P-REMOVE-AND-REFORM-GROUP event" into kitkat
Merge "wlan: Fix to handle the failure status on supplicant start." into kitkat
Merge "Revert "Add support for BeiDou and Glonass"" into kitkat