IRCService: Create Settings object in onCreate()

This commit is contained in:
Sebastian Kaspari 2010-04-17 22:53:40 +02:00
parent 43a6682803
commit 0e56390452
1 changed files with 2 additions and 1 deletions

View File

@ -75,7 +75,6 @@ public class IRCService extends Service
this.connections = new HashMap<Integer, IRCConnection>();
this.binder = new IRCBinder(this);
//this.settings = new Settings(this.getApplicationContext());
}
/**
@ -85,6 +84,8 @@ public class IRCService extends Service
public void onCreate()
{
super.onCreate();
settings = new Settings(getBaseContext());
notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
try {