Check if the Activity is finishing before showDialog()

Check if the Activity is going through its finishing phase before
displaying the Dialog, because Showing dialog once the activity
is no longer in context will cause BadTokenException.

Change-Id: I58940e694f61cd79536abe2df60a0b745a7b806f
DataUsageSummary: fix mobile data usage display for sim-less devices

- Don't assume the device has a sim card. Check for a phone number
  instead. Otherwise the mobile data usage screen will not show up
  on sim-less CDMA devices.

Change-Id: Ic6e35dc209ff05e0c89dc990ad82f4ab4d3f337d
DataUsageSummary: fix mobile data usage display for GSM devices with no number

Some providers don't write phone number onto SIM card causing the
phone number check introduced in the partially reverted commit to fail.
Re-introduce the original check with the "or" condition.

This partially reverts commit 4c51b45355b9d6fed973f946738bf455a8b7c9ea.

Change-Id: I69a65a1a421dcdf168c3d0afeb7110cb97790034
Use a hashed MAC address instead of IMEI for stats collection.

PS2: always use hashed Wifi MAC address to avoid zombies when wiping

Change-Id: I7379c5b380273e35b5aab582f5268d6946e0a255
Adjust aokpstats

Change-Id: I7f40da5313b0754862aab40db06555d752a719d8
Signed-off-by: Gergely Szell (sethyx) <szell@hu.ibm.com>
Hungarian translations by Klasszsrac

Change-Id: Ia2066fefb6972a4cdaeb02547a0b727929fdd64e
Signed-off-by: Gergely Szell (sethyx) <szell@hu.ibm.com>
Power connect/disconnect notification support
Power Widget (2/2)
Fix compiling
Fix state switch
Power vibration default false
Fix NullPointerException at RunningState

getServiceInfo returns null if you have a service defined in the
manifest as: <service android:name=".Xxx" android:exported="false" />
or and in an <application> with no label or icon.
Dont crash the Settings application because of that.

Change-Id: I6f9f69c130e610b7e4ab66426177b7bade1e1515
AOKPStats: update regex to reflect recent changes

Change-Id: I039bbf64487861cf0e8a820f3a64b5947a40564b
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
Screen orientation is changed, the bluetooth searching is stopped.

Change-Id: I52242a541f280db11fa525706822c824cff36031
Fix bluetooth FC
Update Japanese translation
Updated simplified Chinese translations

Change-Id: I634cc31dff349c02be15db2f5e994b8c6ba851cf
Update Czech translations
WifiP2pSettings: Fix the failure of cancel P2P invitation.

Uses the new API in framework to cancel P2P invitation.

Change-Id: I650ed644443c3cbea4cf0f93d3ab3645f27c5f3e
update Hungarian Translations