changeset 476:186d340afd3b

add fg/bg color setting to global:// section of deployment.connections file
author Carl Byington <carl@five-ten-sg.com>
date Sun, 20 Oct 2019 14:19:17 -0700
parents 0fb80a0d6be9
children d7461da8145b
files app/src/main/java/com/five_ten_sg/connectbot/HostListActivity.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/app/src/main/java/com/five_ten_sg/connectbot/HostListActivity.java	Sun Oct 20 14:08:46 2019 -0700
+++ b/app/src/main/java/com/five_ten_sg/connectbot/HostListActivity.java	Sun Oct 20 14:19:17 2019 -0700
@@ -476,12 +476,12 @@
                     dd = "fg_color";
                     if (values.containsKey(dd)) {
                         String sv = values.getAsString(dd);
-                        fg = Integer.parseInt(sv);
+                        fg = Integer.parseInt(sv) - 1;
                     }
                     dd = "bg_color";
                     if (values.containsKey(dd)) {
                         String sv = values.getAsString(dd);
-                        bg = Integer.parseInt(sv);
+                        bg = Integer.parseInt(sv) - 1;
                     }
                     Editor editor = prefs.edit();
                     HashMap<String, String> types = new HashMap<String, String>();