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:
parent
7ec5499541
commit
e61dbe86ae
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user