# HG changeset patch # User Carl Byington # Date 1735678247 25200 # Node ID 693ba231479833c66ffc1836b31feb364219faac # Parent 5e230fbada9ee862cd608f05d1de701f1d31a280 add debug code around deleting the connections file diff -r 5e230fbada9e -r 693ba2314798 app/src/main/AndroidManifest.xml --- a/app/src/main/AndroidManifest.xml Tue Dec 31 12:25:21 2024 -0700 +++ b/app/src/main/AndroidManifest.xml Tue Dec 31 13:50:47 2024 -0700 @@ -17,8 +17,8 @@ --> diff -r 5e230fbada9e -r 693ba2314798 app/src/main/java/com/five_ten_sg/connectbot/HostListActivity.java --- a/app/src/main/java/com/five_ten_sg/connectbot/HostListActivity.java Tue Dec 31 12:25:21 2024 -0700 +++ b/app/src/main/java/com/five_ten_sg/connectbot/HostListActivity.java Tue Dec 31 13:50:47 2024 -0700 @@ -28,6 +28,7 @@ import java.io.BufferedReader; import java.io.FileReader; import java.io.File; +import java.nio.file.Files; import java.util.HashMap; import java.util.List; @@ -620,11 +621,13 @@ } reader.close(); + hostdb.setDefaultColorsForScheme(hostdb.DEFAULT_COLOR_SCHEME, fg, bg); + if (del) { Log.d(TAG, "try to delete " + fn); - (new File(fn)).delete(); + Files.delete(fn); + Log.d(TAG, "deleted " + fn); } - hostdb.setDefaultColorsForScheme(hostdb.DEFAULT_COLOR_SCHEME, fg, bg); } catch (Exception e) { Log.d(TAG, e.getMessage() + " Deployment scan failed.");