Mercurial > 510Connectbot
changeset 241:8b68dfb283d2
add host preference for fixed screen size
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Mon, 14 Jul 2014 10:25:29 -0700 |
parents | 9b011e1c57f3 |
children | e0f5e706a655 |
files | src/com/five_ten_sg/connectbot/bean/HostBean.java src/com/five_ten_sg/connectbot/util/HostDatabase.java |
diffstat | 2 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/com/five_ten_sg/connectbot/bean/HostBean.java Mon Jul 14 10:22:03 2014 -0700 +++ b/src/com/five_ten_sg/connectbot/bean/HostBean.java Mon Jul 14 10:25:29 2014 -0700 @@ -46,8 +46,8 @@ private String delKey = HostDatabase.DELKEY_DEL; private float fontSize = -1; private boolean fizedSize = false; - private integer fixedWidth = 80; - private integer fixedHeight = 25; + private int fixedWidth = 80; + private int fixedHeight = 25; private boolean wantSession = true; private boolean compression = false; private String httpproxy = null; @@ -212,16 +212,16 @@ public boolean getFixedSize() { return fixedSize; } - public void setFixedWidth(float fixedWidth) { + public void setFixedWidth(int fixedWidth) { this.fixedWidth = fixedWidth; } - public float getFixedWidth() { + public int getFixedWidth() { return fixedWidth; } - public void setFixedHeight(float fixedHeight) { + public void setFixedHeight(int fixedHeight) { this.fixedHeight = fixedHeight; } - public float getFixedHeight() { + public int getFixedHeight() { return fixedHeight; } public void setCompression(boolean compression) {
--- a/src/com/five_ten_sg/connectbot/util/HostDatabase.java Mon Jul 14 10:22:03 2014 -0700 +++ b/src/com/five_ten_sg/connectbot/util/HostDatabase.java Mon Jul 14 10:25:29 2014 -0700 @@ -394,8 +394,8 @@ host.setDelKey(c.getString(COL_DELKEY)); host.setFontSize(c.getFloat(COL_FONTSIZE)); host.setFixedSize(Boolean.valueOf(c.getString(COL_FIXEDSIZE))); - host.setFixedWidth(c.getLong(COL_FIXEDWIDTH)); - host.setFixedHeight(c.getLong(COL_FIXEDHEIGHT)); + host.setFixedWidth(c.getInt(COL_FIXEDWIDTH)); + host.setFixedHeight(c.getInt(COL_FIXEDHEIGHT)); host.setWantSession(Boolean.valueOf(c.getString(COL_WANTSESSION))); host.setCompression(Boolean.valueOf(c.getString(COL_COMPRESSION))); host.setHttpproxy(c.getString(COL_HTTPPROXY));