comparison src/com/five_ten_sg/connectbot/ConsoleActivity.java @ 243:918dfcb862ed

add host preference for fixed screen size
author Carl Byington <carl@five-ten-sg.com>
date Mon, 14 Jul 2014 10:36:15 -0700
parents e0f5e706a655
children c8d9ef252b23
comparison
equal deleted inserted replaced
242:e0f5e706a655 243:918dfcb862ed
909 resize.setEnabled(sessionOpen); 909 resize.setEnabled(sessionOpen);
910 resize.setOnMenuItemClickListener(new OnMenuItemClickListener() { 910 resize.setOnMenuItemClickListener(new OnMenuItemClickListener() {
911 public boolean onMenuItemClick(MenuItem item) { 911 public boolean onMenuItemClick(MenuItem item) {
912 final TerminalView terminalView = (TerminalView) findCurrentView(R.id.console_flip); 912 final TerminalView terminalView = (TerminalView) findCurrentView(R.id.console_flip);
913 final View resizeView = inflater.inflate(R.layout.dia_resize, null, false); 913 final View resizeView = inflater.inflate(R.layout.dia_resize, null, false);
914 ((EditText) resizeView.findViewById(R.id.width)).setText("80")); 914 ((EditText) resizeView.findViewById(R.id.width)).setText("80");
915 ((EditText) resizeView.findViewById(R.id.height)).setText("25")); 915 ((EditText) resizeView.findViewById(R.id.height)).setText("25");
916 new AlertDialog.Builder(ConsoleActivity.this) 916 new AlertDialog.Builder(ConsoleActivity.this)
917 .setView(resizeView) 917 .setView(resizeView)
918 .setPositiveButton(R.string.button_resize, new DialogInterface.OnClickListener() { 918 .setPositiveButton(R.string.button_resize, new DialogInterface.OnClickListener() {
919 public void onClick(DialogInterface dialog, int which) { 919 public void onClick(DialogInterface dialog, int which) {
920 int width, height; 920 int width, height;