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:
parent
9c5b9cce90
commit
e0ce5fc4ce
@ -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();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user