Skip to content

Commit

Permalink
Update sample
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshLipan committed Jan 9, 2019
1 parent 723d7cc commit aa9f28f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -614,12 +614,14 @@ public void onStatusViewClick(MyMessage message) {
voiceMessage.setUserInfo(new DefaultUser("0", "Deadpool", "R.drawable.deadpool"));
voiceMessage.setMediaFilePath(Environment.getExternalStorageDirectory().getAbsolutePath() + "/voice/2018-02-28-105103.m4a");
voiceMessage.setDuration(4);

mAdapter.addToStart(voiceMessage, true);

MyMessage sendVoiceMsg = new MyMessage("", IMessage.MessageType.SEND_VOICE.ordinal());
sendVoiceMsg.setUserInfo(new DefaultUser("1", "Ironman", "R.drawable.ironman"));
sendVoiceMsg.setMediaFilePath(Environment.getExternalStorageDirectory().getAbsolutePath() + "/voice/2018-02-28-105103.m4a");
sendVoiceMsg.setDuration(4);
sendVoiceMsg.setMessageStatus(IMessage.MessageStatus.SEND_SUCCEED);
mAdapter.addToStart(sendVoiceMsg, true);
MyMessage eventMsg = new MyMessage("haha", IMessage.MessageType.EVENT.ordinal());
mAdapter.addToStart(eventMsg, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
android:layout_alignParentBottom="true"
app:inputMarginLeft="3dp"
app:inputMarginRight="3dp"
app:cameraQuality="1.0"
app:showSelectAlbum="true"/>


Expand Down

0 comments on commit aa9f28f

Please sign in to comment.