mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-05 20:34:49 +01: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);
|
||||
|
||||
@@ -115,7 +115,7 @@ public class ServiceSynchronize extends ServiceBase {
|
||||
|
||||
@Override
|
||||
public void onCreate() {
|
||||
Log.i("Service create version=" + BuildConfig.VERSION_NAME);
|
||||
EntityLog.log(this, "Service create version=" + BuildConfig.VERSION_NAME);
|
||||
super.onCreate();
|
||||
startForeground(Helper.NOTIFICATION_SYNCHRONIZE, getNotificationService(null).build());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user