1
0
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:
Joe Steele 2014-03-23 11:17:11 -04:00
parent 9c5b9cce90
commit e0ce5fc4ce
2 changed files with 0 additions and 5 deletions

View File

@ -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();
}
/**

View File

@ -111,8 +111,6 @@ public class DatabaseUpgradeService extends Service {
@Override
public void onCreate() {
super.onCreate();
mLocalBroadcastManager = LocalBroadcastManager.getInstance(this);
}