mirror of https://github.com/M66B/FairEmail.git
Added Service.onTimeout
This commit is contained in:
parent
c5099952bb
commit
9b317defe5
|
@ -72,6 +72,12 @@ public class ServiceExternal extends ServiceBase {
|
|||
startForeground(NotificationHelper.NOTIFICATION_EXTERNAL, getNotification());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onTimeout(int startId) {
|
||||
Log.e(new Throwable("onTimeout"));
|
||||
stopSelf(startId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDestroy() {
|
||||
Log.i("Service external destroy");
|
||||
|
|
|
@ -202,6 +202,12 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar
|
|||
PreferenceManager.getDefaultSharedPreferences(this).registerOnSharedPreferenceChangeListener(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onTimeout(int startId) {
|
||||
Log.e(new Throwable("onTimeout"));
|
||||
stopSelf(startId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDestroy() {
|
||||
EntityLog.log(this, "Service send destroy");
|
||||
|
|
|
@ -1177,6 +1177,12 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
|||
return START_STICKY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onTimeout(int startId) {
|
||||
Log.e(new Throwable("onTimeout"));
|
||||
stopSelf(startId);
|
||||
}
|
||||
|
||||
private void onEnable(Intent intent) {
|
||||
boolean enabled = intent.getBooleanExtra("enabled", true);
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
|
||||
|
|
Loading…
Reference in New Issue