mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 11:42:16 -05:00
Eliminate superclass callbacks
Service components don't need to call super.onCreate() and super.onDestroy()
This commit is contained in:
parent
9c5b9cce90
commit
e0ce5fc4ce
@ -195,7 +195,6 @@ public abstract class CoreService extends Service {
|
||||
}
|
||||
|
||||
mThreadPool = Executors.newFixedThreadPool(1); // Must be single threaded
|
||||
super.onCreate();
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -407,8 +406,6 @@ public abstract class CoreService extends Service {
|
||||
// Shut down thread pool
|
||||
mShutdown = true;
|
||||
mThreadPool.shutdown();
|
||||
|
||||
super.onDestroy();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -111,8 +111,6 @@ public class DatabaseUpgradeService extends Service {
|
||||
|
||||
@Override
|
||||
public void onCreate() {
|
||||
super.onCreate();
|
||||
|
||||
mLocalBroadcastManager = LocalBroadcastManager.getInstance(this);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user