Mercurial > 510Connectbot
changeset 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 | 8b68dfb283d2 |
children | 918dfcb862ed |
files | src/com/five_ten_sg/connectbot/ConsoleActivity.java src/com/five_ten_sg/connectbot/bean/HostBean.java |
diffstat | 2 files changed, 3 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/com/five_ten_sg/connectbot/ConsoleActivity.java Mon Jul 14 10:25:29 2014 -0700 +++ b/src/com/five_ten_sg/connectbot/ConsoleActivity.java Mon Jul 14 10:33:13 2014 -0700 @@ -911,10 +911,8 @@ public boolean onMenuItemClick(MenuItem item) { final TerminalView terminalView = (TerminalView) findCurrentView(R.id.console_flip); final View resizeView = inflater.inflate(R.layout.dia_resize, null, false); - ((EditText) resizeView.findViewById(R.id.width)) - .setText(prefs.getString(PreferenceConstants.DEFAULT_FONT_SIZE_WIDTH, "80")); - ((EditText) resizeView.findViewById(R.id.height)) - .setText(prefs.getString(PreferenceConstants.DEFAULT_FONT_SIZE_HEIGHT, "25")); + ((EditText) resizeView.findViewById(R.id.width)).setText("80")); + ((EditText) resizeView.findViewById(R.id.height)).setText("25")); new AlertDialog.Builder(ConsoleActivity.this) .setView(resizeView) .setPositiveButton(R.string.button_resize, new DialogInterface.OnClickListener() {
--- a/src/com/five_ten_sg/connectbot/bean/HostBean.java Mon Jul 14 10:25:29 2014 -0700 +++ b/src/com/five_ten_sg/connectbot/bean/HostBean.java Mon Jul 14 10:33:13 2014 -0700 @@ -45,7 +45,7 @@ private long pubkeyId = -1; private String delKey = HostDatabase.DELKEY_DEL; private float fontSize = -1; - private boolean fizedSize = false; + private boolean fixedSize = false; private int fixedWidth = 80; private int fixedHeight = 25; private boolean wantSession = true;