mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-02 15:17:03 +02:00
Log service life cycle
This commit is contained in:
@@ -72,7 +72,7 @@ public class ServiceSend extends ServiceBase {
|
||||
|
||||
@Override
|
||||
public void onCreate() {
|
||||
Log.i("Service send create");
|
||||
EntityLog.log(this, "Service send create");
|
||||
super.onCreate();
|
||||
startForeground(Helper.NOTIFICATION_SEND, getNotificationService(null, null).build());
|
||||
|
||||
@@ -220,7 +220,7 @@ public class ServiceSend extends ServiceBase {
|
||||
|
||||
@Override
|
||||
public void onDestroy() {
|
||||
Log.i("Service send destroy");
|
||||
EntityLog.log(this, "Service send destroy");
|
||||
|
||||
ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
|
||||
cm.unregisterNetworkCallback(networkCallback);
|
||||
|
||||
Reference in New Issue
Block a user