# HG changeset patch # User Carl Byington # Date 1405358729 25200 # Node ID 8b68dfb283d2c086113c6ba9efed962a154eeeca # Parent 9b011e1c57f3bb817032838684c2bab7c4a8ba78 add host preference for fixed screen size diff -r 9b011e1c57f3 -r 8b68dfb283d2 src/com/five_ten_sg/connectbot/bean/HostBean.java --- 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) { diff -r 9b011e1c57f3 -r 8b68dfb283d2 src/com/five_ten_sg/connectbot/util/HostDatabase.java --- 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));