mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-11-10 11:15:09 -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.setId(cursor.getInt(cursor.getColumnIndex((ServerConstants._ID))));
|
||||||
server.setStatus(Status.DISCONNECTED);
|
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);
|
servers.put(server.getId(), server);
|
||||||
}
|
}
|
||||||
cursor.close();
|
cursor.close();
|
||||||
|
Loading…
Reference in New Issue
Block a user