Skip to content

Commit

Permalink
v3.0b20170713 released!
Browse files Browse the repository at this point in the history
  • Loading branch information
JackJiang2011 committed Jul 18, 2017
1 parent 555f491 commit 8ef7aee
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 11 deletions.
Binary file modified demos/client/MobileIMSDKDemo-Java.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion release_notes/release_note_v3.0b20170713.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

-------------------------------------------------------------------------------------- v3.0������2017-06-25 19:08
-------------------------------------------------------------------------------------- v3.0b20170713������2017-07-13 19:08
MobileIMSDK v3.0b20170713�����˵����
�������Bug��
1. [Android��java��iOS]�����Demo�������ڲ��˳�APP��������˳���½�������µ�½ʱ���ᱨcode=203�����bug��
Expand Down
10 changes: 10 additions & 0 deletions release_notes/release_note_v3.0b20170718.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

-------------------------------------------------------------------------------------- v3.0b20170718������2017-07-18 22:11
MobileIMSDK v3.0b20170718�����˵����
�������Bug��
1. [java]�����Java�ͻ���Demo�ӵ�½�������������ʱż�����������⡣





Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,18 @@ private static void initUserInterface()
e.printStackTrace();
}
}

public static void runOnUiThread(Runnable r)
{
SwingUtilities.invokeLater(r);
}

public static void main(final String... args)
{
// init gui properties
Launch.initUserInterface();
// startup GUI
SwingUtilities.invokeLater(new Runnable()
runOnUiThread(new Runnable()
{
public void run()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import javax.swing.JPanel;
import javax.swing.JPasswordField;
import javax.swing.JTextField;
import javax.swing.SwingUtilities;
import javax.swing.Timer;
import javax.swing.border.LineBorder;

Expand Down Expand Up @@ -113,7 +114,7 @@ private void initViews()
mainPanel.addTitledLineSeparator("");
JPanel btnAndVerPanel = new JPanel();
btnAndVerPanel.setLayout(new BoxLayout(btnAndVerPanel, BoxLayout.LINE_AXIS));
JLabel lbVer= new JLabel("v3.0b170713.1");
JLabel lbVer= new JLabel("v3.0b170718.4");
lbVer.setForeground(new Color(184,184,184));
btnAndVerPanel.add(lbVer);
btnAndVerPanel.add(Box.createHorizontalGlue());
Expand Down Expand Up @@ -183,14 +184,24 @@ public void update(Observable observable, Object data)
// 登陆成功
if(code == 0)
{
//** 提示:登陆MobileIMSDK服务器成功后的事情在此实现即可
// 进入主界面
MainGUI frame = new MainGUI();
frame.setLocationRelativeTo(null);
frame.setVisible(true);

// 同时关闭登陆界面
LoginGUI.this.dispose();
//## BUG FIX START: 20170718 by Jack Jiang
//## 让以下代码异步运行于EDT线程,从而解决登陆界面切到主界面时偶尔卡死问题
// startup GUI
Launch.runOnUiThread(new Runnable()
{
public void run()
{
//** 提示:登陆MobileIMSDK服务器成功后的事情在此实现即可
// 进入主界面
MainGUI frame = new MainGUI();
frame.setLocationRelativeTo(null);
frame.setVisible(true);

// 同时关闭登陆界面
LoginGUI.this.dispose();
}
});
//## BUG FIX END: 20170718 by Jack Jiang
}
// 登陆失败
else
Expand Down

0 comments on commit 8ef7aee

Please sign in to comment.