# HG changeset patch # User Carl Byington # Date 1405537635 25200 # Node ID c8d9ef252b23ba3838c380164ff9b9efc92b0ca2 # Parent db26984b69f5a72897eeac2047e2c5b25cdd0c42 menu force-size does not need a session, just an active terminal diff -r db26984b69f5 -r c8d9ef252b23 src/com/five_ten_sg/connectbot/ConsoleActivity.java --- a/src/com/five_ten_sg/connectbot/ConsoleActivity.java Tue Jul 15 20:59:40 2014 -0700 +++ b/src/com/five_ten_sg/connectbot/ConsoleActivity.java Wed Jul 16 12:07:15 2014 -0700 @@ -617,8 +617,7 @@ List itemList = new ArrayList(); final TerminalView terminalView = (TerminalView) findCurrentView(R.id.console_flip); - if (terminalView == null) - return; + if (terminalView == null) return; final TerminalBridge bridge = terminalView.bridge; @@ -906,7 +905,7 @@ resize.setAlphabeticShortcut('r'); resize.setIcon(android.R.drawable.ic_menu_crop); - resize.setEnabled(sessionOpen); + resize.setEnabled((activeTerminal); resize.setOnMenuItemClickListener(new OnMenuItemClickListener() { public boolean onMenuItemClick(MenuItem item) { final TerminalView terminalView = (TerminalView) findCurrentView(R.id.console_flip);