mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-26 10:55:09 +01:00
Added Service.onTimeout
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user