Fix build

Change-Id: I1968e0d7d25f613fa6cf72f82d79f17224e3d5ab
This commit is contained in:
Irfan Sheriff
2012-04-19 10:26:34 -07:00
parent fb97ffe162
commit 52fc83a79a
2 changed files with 3 additions and 3 deletions

View File

@@ -158,14 +158,14 @@ public class NsdManager {
/**
* Network service discovery is disabled
*
* @see #NSD_STATE_CHANGED_ACTION
* @see #ACTION_NSD_STATE_CHANGED
*/
public static final int NSD_STATE_DISABLED = 1;
/**
* Network service discovery is enabled
*
* @see #NSD_STATE_CHANGED_ACTION
* @see #ACTION_NSD_STATE_CHANGED
*/
public static final int NSD_STATE_ENABLED = 2;

View File

@@ -399,7 +399,7 @@ public class NsdService extends INsdManager.Stub {
}
private void sendNsdStateChangeBroadcast(boolean enabled) {
final Intent intent = new Intent(NsdManager.NSD_STATE_CHANGED_ACTION);
final Intent intent = new Intent(NsdManager.ACTION_NSD_STATE_CHANGED);
intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT);
if (enabled) {
intent.putExtra(NsdManager.EXTRA_NSD_STATE, NsdManager.NSD_STATE_ENABLED);