mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-11-23 09:22:19 -05:00
Broadcast: Helper methods use Extra.*
This commit is contained in:
parent
db06f5450d
commit
976ef4f598
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user