Mercurial > 510Connectbot
diff src/com/five_ten_sg/connectbot/service/TerminalBridge.java @ 253:e13878bb3ddf
add host preference for fixed screen size
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Mon, 14 Jul 2014 12:44:57 -0700 |
parents | 0181323d0d33 |
children | edf4dacea9ff |
line wrap: on
line diff
--- a/src/com/five_ten_sg/connectbot/service/TerminalBridge.java Mon Jul 14 12:24:29 2014 -0700 +++ b/src/com/five_ten_sg/connectbot/service/TerminalBridge.java Mon Jul 14 12:44:57 2014 -0700 @@ -583,7 +583,21 @@ // force full redraw with new buffer size fullRedraw = true; redraw(); - parent.notifyUser(String.format("%d x %d", columns, rows)); + + // initial sequence from + // transport.connect() + // bridge.onConnected() + // bridge.setMyFontSize() + // bridge.resizeComputed() + // bridge.setFontSize() + // bridge.parentChanged() here is on the wrong thread + try { + parent.notifyUser(String.format("%d x %d", columns, rows)); + } + catch (Exception e) { + Log.e(TAG, "Problem while trying to notify user", e); + } + Log.i(TAG, String.format("parentChanged() now width=%d, height=%d", columns, rows)); }