1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-30 13:12:25 -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 mThreadPool = Executors.newFixedThreadPool(1); // Must be single threaded
super.onCreate();
} }
@Override @Override
@ -407,8 +406,6 @@ public abstract class CoreService extends Service {
// Shut down thread pool // Shut down thread pool
mShutdown = true; mShutdown = true;
mThreadPool.shutdown(); mThreadPool.shutdown();
super.onDestroy();
} }
/** /**

View File

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