comparison app/src/main/java/com/five_ten_sg/connectbot/service/TerminalMonitor.java @ 479:3a83f40439d7

only bind to the MonitorService for localhost monitor connections
author Carl Byington <carl@five-ten-sg.com>
date Mon, 28 Oct 2019 13:49:01 -0700
parents d7461da8145b
children e88d48be89a8
comparison
equal deleted inserted replaced
477:d7461da8145b 479:3a83f40439d7
284 keymap.put(0x83, vt320.KEY_F20); // vk_f20 284 keymap.put(0x83, vt320.KEY_F20); // vk_f20
285 keymap.put(0x84, vt320.KEY_F21); // vk_f21 285 keymap.put(0x84, vt320.KEY_F21); // vk_f21
286 keymap.put(0x85, vt320.KEY_F22); // vk_f22 286 keymap.put(0x85, vt320.KEY_F22); // vk_f22
287 keymap.put(0x86, vt320.KEY_F23); // vk_f23 287 keymap.put(0x86, vt320.KEY_F23); // vk_f23
288 keymap.put(0x87, vt320.KEY_F24); // vk_f24 288 keymap.put(0x87, vt320.KEY_F24); // vk_f24
289 if (target == "localhost") { 289 if (target.equals("localhost")) {
290 // bind to the monitor service for localhost connections 290 // bind to the monitor service for localhost connections
291 Intent intent = new Intent("com.five_ten_sg.connectbot.monitor.MonitorService"); 291 Intent intent = new Intent("com.five_ten_sg.connectbot.monitor.MonitorService");
292 intent.setPackage("com.five_ten_sg.connectbot.monitor"); 292 intent.setPackage("com.five_ten_sg.connectbot.monitor");
293 parent.bindService(intent, monitor_connection, Context.BIND_AUTO_CREATE); 293 parent.bindService(intent, monitor_connection, Context.BIND_AUTO_CREATE);
294 } 294 }