diff options
Diffstat (limited to '')
-rw-r--r-- | src/de/gultsch/chat/ui/ConversationActivity.java | 8 | ||||
-rw-r--r-- | src/de/gultsch/chat/ui/ConversationFragment.java | 6 | ||||
-rw-r--r-- | src/de/gultsch/chat/ui/NewConversationActivity.java | 4 |
3 files changed, 9 insertions, 9 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)); } diff --git a/src/de/gultsch/chat/ui/ConversationFragment.java b/src/de/gultsch/chat/ui/ConversationFragment.java index 990c38b6..1b8edbb5 100644 --- a/src/de/gultsch/chat/ui/ConversationFragment.java +++ b/src/de/gultsch/chat/ui/ConversationFragment.java @@ -6,7 +6,7 @@ import java.util.List; import de.gultsch.chat.R; import de.gultsch.chat.entities.Conversation; import de.gultsch.chat.entities.Message; -import de.gultsch.chat.utils.Beautifier; +import de.gultsch.chat.utils.UIHelper; import android.app.Fragment; import android.database.Cursor; import android.graphics.Typeface; @@ -119,7 +119,7 @@ public class ConversationFragment extends Fragment { if (uri!=null) { imageView.setImageURI(uri); } else { - imageView.setImageBitmap(Beautifier.getUnknownContactPicture(item.getConversation().getName(), 200)); + imageView.setImageBitmap(UIHelper.getUnknownContactPicture(item.getConversation().getName(), 200)); } } else { imageView.setImageURI(profilePicture); @@ -133,7 +133,7 @@ public class ConversationFragment extends Fragment { if (item.getStatus() == Message.STATUS_UNSEND) { time.setTypeface(null, Typeface.ITALIC); } else { - time.setText(Beautifier.readableTimeDifference(item + time.setText(UIHelper.readableTimeDifference(item .getTimeSent())); } return view; diff --git a/src/de/gultsch/chat/ui/NewConversationActivity.java b/src/de/gultsch/chat/ui/NewConversationActivity.java index bcd7fc9d..71c377dd 100644 --- a/src/de/gultsch/chat/ui/NewConversationActivity.java +++ b/src/de/gultsch/chat/ui/NewConversationActivity.java @@ -9,7 +9,7 @@ import de.gultsch.chat.R; import de.gultsch.chat.entities.Account; import de.gultsch.chat.entities.Contact; import de.gultsch.chat.entities.Conversation; -import de.gultsch.chat.utils.Beautifier; +import de.gultsch.chat.utils.UIHelper; import de.gultsch.chat.utils.Validator; import android.net.Uri; import android.os.Bundle; @@ -158,7 +158,7 @@ public class NewConversationActivity extends XmppActivity { if (profilePhoto!=null) { imageView.setImageURI(Uri.parse(profilePhoto)); } else { - imageView.setImageBitmap(Beautifier.getUnknownContactPicture(getItem(position).getDisplayName(),90)); + imageView.setImageBitmap(UIHelper.getUnknownContactPicture(getItem(position).getDisplayName(),90)); } return view; } |