mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-11-26 19:02:17 -05:00
IRCService: Create Settings object in onCreate()
This commit is contained in:
parent
43a6682803
commit
0e56390452
@ -75,7 +75,6 @@ public class IRCService extends Service
|
|||||||
|
|
||||||
this.connections = new HashMap<Integer, IRCConnection>();
|
this.connections = new HashMap<Integer, IRCConnection>();
|
||||||
this.binder = new IRCBinder(this);
|
this.binder = new IRCBinder(this);
|
||||||
//this.settings = new Settings(this.getApplicationContext());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -85,6 +84,8 @@ public class IRCService extends Service
|
|||||||
public void onCreate()
|
public void onCreate()
|
||||||
{
|
{
|
||||||
super.onCreate();
|
super.onCreate();
|
||||||
|
|
||||||
|
settings = new Settings(getBaseContext());
|
||||||
notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
|
notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user