Mercurial > 510Connectbot
comparison src/com/five_ten_sg/connectbot/ConsoleActivity.java @ 242:e0f5e706a655
add host preference for fixed screen size
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Mon, 14 Jul 2014 10:33:13 -0700 |
parents | 0ce5cc452d02 |
children | 918dfcb862ed |
comparison
equal
deleted
inserted
replaced
241:8b68dfb283d2 | 242:e0f5e706a655 |
---|---|
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)) | 914 ((EditText) resizeView.findViewById(R.id.width)).setText("80")); |
915 .setText(prefs.getString(PreferenceConstants.DEFAULT_FONT_SIZE_WIDTH, "80")); | 915 ((EditText) resizeView.findViewById(R.id.height)).setText("25")); |
916 ((EditText) resizeView.findViewById(R.id.height)) | |
917 .setText(prefs.getString(PreferenceConstants.DEFAULT_FONT_SIZE_HEIGHT, "25")); | |
918 new AlertDialog.Builder(ConsoleActivity.this) | 916 new AlertDialog.Builder(ConsoleActivity.this) |
919 .setView(resizeView) | 917 .setView(resizeView) |
920 .setPositiveButton(R.string.button_resize, new DialogInterface.OnClickListener() { | 918 .setPositiveButton(R.string.button_resize, new DialogInterface.OnClickListener() { |
921 public void onClick(DialogInterface dialog, int which) { | 919 public void onClick(DialogInterface dialog, int which) { |
922 int width, height; | 920 int width, height; |