Mercurial > 510Connectbot
changeset 134:81cafbe7cd9b
read deployment.connections on startup for new host entries
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 19 Jun 2014 15:52:16 -0700 |
parents | b151d3eca95a |
children | e251b3b679c3 |
files | src/com/five_ten_sg/connectbot/HostListActivity.java |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/com/five_ten_sg/connectbot/HostListActivity.java Thu Jun 19 15:48:52 2014 -0700 +++ b/src/com/five_ten_sg/connectbot/HostListActivity.java Thu Jun 19 15:52:16 2014 -0700 @@ -25,7 +25,7 @@ import com.five_ten_sg.connectbot.transport.TransportFactory; import com.five_ten_sg.connectbot.util.HostDatabase; import com.five_ten_sg.connectbot.util.PreferenceConstants; -import java.nio.file.Files; +import java.io.File; import android.app.Activity; import android.app.AlertDialog; import android.app.ListActivity; @@ -65,8 +65,8 @@ import android.widget.TextView; public class HostListActivity extends ListActivity { + protected static final String TAG = "ConnectBot.HostListActivity"; public final static int REQUEST_EDIT = 1; - public final static int REQUEST_EULA = 2; protected TerminalManager bound = null; @@ -423,7 +423,7 @@ db.close(); } reader.close(); - Files.delete(fn); + File.delete(fn); } catch (Exception e) { Log.d(TAG, "Deployment scan failed.", e);