Commit eb08b6ff authored by fallenstardust's avatar fallenstardust

交换加入和取消按钮

parent 30e76b1d
...@@ -630,14 +630,11 @@ public abstract class HomeActivity extends BaseActivity implements NavigationVie ...@@ -630,14 +630,11 @@ public abstract class HomeActivity extends BaseActivity implements NavigationVie
dialog.setTitle(R.string.question); dialog.setTitle(R.string.question);
dialog.setMessage(getString(R.string.quick_join) + password + "\""); dialog.setMessage(getString(R.string.quick_join) + password + "\"");
dialog.setMessageGravity(Gravity.CENTER_HORIZONTAL); dialog.setMessageGravity(Gravity.CENTER_HORIZONTAL);
dialog.setRightButtonText(R.string.Cancel); dialog.setLeftButtonText(R.string.Cancel);
dialog.setLeftButtonText(R.string.join); dialog.setRightButtonText(R.string.join);
dialog.show(); dialog.show();
dialog.setRightButtonListener((dlg, s) -> { dialog.setRightButtonListener((dlg, s) -> {
dialog.dismiss(); dialog.dismiss();
});
dialog.setLeftButtonListener((dlg, s) -> {
dialog.dismiss();
ServerListAdapter mServerListAdapter = new ServerListAdapter(this); ServerListAdapter mServerListAdapter = new ServerListAdapter(this);
ServerListManager mServerListManager = new ServerListManager(this, mServerListAdapter); ServerListManager mServerListManager = new ServerListManager(this, mServerListAdapter);
mServerListManager.syncLoadData(); mServerListManager.syncLoadData();
...@@ -660,5 +657,8 @@ public abstract class HomeActivity extends BaseActivity implements NavigationVie ...@@ -660,5 +657,8 @@ public abstract class HomeActivity extends BaseActivity implements NavigationVie
} }
}); });
}); });
dialog.setLeftButtonListener((dlg, s) -> {
dialog.dismiss();
});
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment