Database: Load auto join servers on populating server object

This commit is contained in:
Sebastian Kaspari 2010-04-25 11:25:17 +02:00
parent 622814a484
commit db7980738e
1 changed files with 4 additions and 0 deletions

View File

@ -315,6 +315,10 @@ public class Database extends SQLiteOpenHelper
Identity identity = this.getIdentityById(cursor.getInt(cursor.getColumnIndex(ServerConstants.IDENTITY)));
server.setIdentity(identity);
// Load auto join channels
ArrayList<String> channels = this.getChannelsByServerId(server.getId());
server.setAutoJoinChannels(channels);
return server;
}