comparison src/com/five_ten_sg/connectbot/monitor/MonitorActivity.java @ 3:2be5bca648ab

switch to static functions
author Carl Byington <carl@five-ten-sg.com>
date Mon, 23 Jun 2014 17:05:16 -0700
parents f6a1aabf384f
children 665324c9716e
comparison
equal deleted inserted replaced
2:f6a1aabf384f 3:2be5bca648ab
66 } 66 }
67 67
68 private void printer(String msg) { 68 private void printer(String msg) {
69 if (count < LINES) count++; 69 if (count < LINES) count++;
70 else start = (start+1) % LINES; 70 else start = (start+1) % LINES;
71 texts[(start+count-1) % LINES] = s + "\n"; 71 texts[(start+count-1) % LINES] = msg + "\n";
72 String c = ""; 72 String c = "";
73 for (int i=0; i<count; i++) c = c.concat(texts[(start+i) % LINES]); 73 for (int i=0; i<count; i++) c = c.concat(texts[(start+i) % LINES]);
74 text.setText(c); 74 text.setText(c);
75 } 75 }
76 76