1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-04 16:35:05 -05:00

Attach identity on loading server from database

This commit is contained in:
Sebastian Kaspari 2010-03-13 14:55:19 +01:00
parent 7ec5499541
commit e61dbe86ae

View File

@ -175,6 +175,10 @@ public class Database extends SQLiteOpenHelper
server.setId(cursor.getInt(cursor.getColumnIndex((ServerConstants._ID))));
server.setStatus(Status.DISCONNECTED);
// Load identity for server
Identity identity = this.getIdentityById(cursor.getInt(cursor.getColumnIndex(ServerConstants.IDENTITY)));
server.setIdentity(identity);
servers.put(server.getId(), server);
}
cursor.close();