1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-27 03:12:18 -05:00

Broadcast: Helper methods use Extra.*

This commit is contained in:
Sebastian Kaspari 2010-03-24 19:27:32 +01:00
parent db06f5450d
commit 976ef4f598

View File

@ -35,9 +35,6 @@ public abstract class Broadcast
public static final String CONVERSATION_NEW = "org.yaaic.conversation.new"; public static final String CONVERSATION_NEW = "org.yaaic.conversation.new";
public static final String CONVERSATION_REMOVE = "org.yaaic.conversation.remove"; public static final String CONVERSATION_REMOVE = "org.yaaic.conversation.remove";
public static final String EXTRA_SERVER = "server";
public static final String EXTRA_CONVERSATION = "conversation";
/** /**
* Create an Intent for conversation broadcasting * Create an Intent for conversation broadcasting
* *
@ -50,8 +47,8 @@ public abstract class Broadcast
{ {
Intent intent = new Intent(broadcastType); Intent intent = new Intent(broadcastType);
intent.putExtra(Broadcast.EXTRA_SERVER, serverId); intent.putExtra(Extra.SERVER, serverId);
intent.putExtra(Broadcast.EXTRA_CONVERSATION, conversationName); intent.putExtra(Extra.CONVERSATION, conversationName);
return intent; return intent;
} }
@ -67,7 +64,7 @@ public abstract class Broadcast
{ {
Intent intent = new Intent(broadcastType); Intent intent = new Intent(broadcastType);
intent.putExtra(Broadcast.EXTRA_SERVER, serverId); intent.putExtra(Extra.SERVER, serverId);
return intent; return intent;
} }