From 976ef4f598e0ea81d3a17da90ef0329a5708cdbd Mon Sep 17 00:00:00 2001 From: Sebastian Kaspari Date: Wed, 24 Mar 2010 19:27:32 +0100 Subject: [PATCH] Broadcast: Helper methods use Extra.* --- src/org/yaaic/model/Broadcast.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/org/yaaic/model/Broadcast.java b/src/org/yaaic/model/Broadcast.java index 7da5d2e..a215ab0 100644 --- a/src/org/yaaic/model/Broadcast.java +++ b/src/org/yaaic/model/Broadcast.java @@ -34,9 +34,6 @@ public abstract class Broadcast public static final String CONVERSATION_MESSAGE = "org.yaaic.conversation.message"; public static final String CONVERSATION_NEW = "org.yaaic.conversation.new"; 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 @@ -50,8 +47,8 @@ public abstract class Broadcast { Intent intent = new Intent(broadcastType); - intent.putExtra(Broadcast.EXTRA_SERVER, serverId); - intent.putExtra(Broadcast.EXTRA_CONVERSATION, conversationName); + intent.putExtra(Extra.SERVER, serverId); + intent.putExtra(Extra.CONVERSATION, conversationName); return intent; } @@ -67,7 +64,7 @@ public abstract class Broadcast { Intent intent = new Intent(broadcastType); - intent.putExtra(Broadcast.EXTRA_SERVER, serverId); + intent.putExtra(Extra.SERVER, serverId); return intent; }