1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-22 17:02:21 -05:00

Read server password from database on object population

This commit is contained in:
Sebastian Kaspari 2010-03-13 16:45:06 +01:00
parent 7d55a03a02
commit bfd67da5b9

View File

@ -204,6 +204,7 @@ public class Database extends SQLiteOpenHelper
server.setTitle(cursor.getString(cursor.getColumnIndex((ServerConstants.TITLE)))); server.setTitle(cursor.getString(cursor.getColumnIndex((ServerConstants.TITLE))));
server.setHost(cursor.getString(cursor.getColumnIndex((ServerConstants.HOST)))); server.setHost(cursor.getString(cursor.getColumnIndex((ServerConstants.HOST))));
server.setPort(cursor.getInt(cursor.getColumnIndex((ServerConstants.PORT)))); server.setPort(cursor.getInt(cursor.getColumnIndex((ServerConstants.PORT))));
server.setPassword(cursor.getString(cursor.getColumnIndex(ServerConstants.PASSWORD)));
server.setId(cursor.getInt(cursor.getColumnIndex((ServerConstants._ID)))); server.setId(cursor.getInt(cursor.getColumnIndex((ServerConstants._ID))));
server.setStatus(Status.DISCONNECTED); server.setStatus(Status.DISCONNECTED);