aboutsummaryrefslogtreecommitdiffstats
path: root/src/de/gultsch/chat/ui/ConversationActivity.java
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-02-03 18:38:47 +0100
committerDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-02-03 18:38:47 +0100
commit14a171b088363d8e39b547eecc181570c4289428 (patch)
tree3921fd13be199c52f5f6fb614c520a8cc91853d2 /src/de/gultsch/chat/ui/ConversationActivity.java
parent7d79852c8403a8882061480cfb524724b84857ec (diff)
basic notifications
Diffstat (limited to '')
-rw-r--r--src/de/gultsch/chat/ui/ConversationActivity.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/de/gultsch/chat/ui/ConversationActivity.java b/src/de/gultsch/chat/ui/ConversationActivity.java
index 8c377241..29d4d65c 100644
--- a/src/de/gultsch/chat/ui/ConversationActivity.java
+++ b/src/de/gultsch/chat/ui/ConversationActivity.java
@@ -8,7 +8,7 @@ import java.util.List;
import de.gultsch.chat.R;
import de.gultsch.chat.R.id;
import de.gultsch.chat.entities.Conversation;
-import de.gultsch.chat.utils.Beautifier;
+import de.gultsch.chat.utils.UIHelper;
import android.net.Uri;
import android.os.Bundle;
import android.app.FragmentTransaction;
@@ -34,7 +34,7 @@ import android.widget.ImageView;
public class ConversationActivity extends XmppActivity {
public static final String VIEW_CONVERSATION = "viewConversation";
- protected static final String CONVERSATION = "conversationUuid";
+ public static final String CONVERSATION = "conversationUuid";
protected SlidingPaneLayout spl;
@@ -137,14 +137,14 @@ public class ConversationActivity extends XmppActivity {
.setText(getItem(position).getName());
((TextView) view.findViewById(R.id.conversation_lastmsg)).setText(getItem(position).getLatestMessage());
((TextView) view.findViewById(R.id.conversation_lastupdate))
- .setText(Beautifier.readableTimeDifference(getItem(position).getLatestMessageDate()));
+ .setText(UIHelper.readableTimeDifference(getItem(position).getLatestMessageDate()));
Uri profilePhoto = getItem(position).getProfilePhotoUri();
ImageView imageView = (ImageView) view.findViewById(R.id.conversation_image);
if (profilePhoto!=null) {
imageView.setImageURI(profilePhoto);
} else {
- imageView.setImageBitmap(Beautifier.getUnknownContactPicture(getItem(position).getName(),200));
+ imageView.setImageBitmap(UIHelper.getUnknownContactPicture(getItem(position).getName(),200));
}