diff src/com/five_ten_sg/connectbot/service/TerminalKeyListener.java @ 112:77ac18bc1b2f

cleanup java formatting
author Carl Byington <carl@five-ten-sg.com>
date Wed, 18 Jun 2014 13:03:01 -0700
parents 8ac79084875b
children bc59a399f627
line wrap: on
line diff
--- a/src/com/five_ten_sg/connectbot/service/TerminalKeyListener.java	Wed Jun 18 13:00:19 2014 -0700
+++ b/src/com/five_ten_sg/connectbot/service/TerminalKeyListener.java	Wed Jun 18 13:03:01 2014 -0700
@@ -124,11 +124,13 @@
 
     protected void sendEncoded(String s) {
         byte [] b = null;
+
         try {
             b = s.getBytes(encoding);
         }
-        catch (UnsupportedEncodingException e){
+        catch (UnsupportedEncodingException e) {
         }
+
         if (b != null) buffer.write(b);
     }
 
@@ -138,6 +140,7 @@
      */
     public boolean onKey(View v, int keyCode, KeyEvent event) {
         Log.d(TAG, String.format("onKey with key %d", keyCode));
+
         try {
             // skip keys if we aren't connected yet or have been disconnected
             if (bridge.isDisconnected()) return false;
@@ -586,6 +589,7 @@
             Log.d(TAG, "Input before connection established ignored.");
             return true;
         }
+
         return false;
     }