mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-04 03:43:55 +01:00
Singleton handler
This commit is contained in:
@@ -21,6 +21,7 @@ package eu.faircode.email;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.os.Handler;
|
||||
|
||||
import androidx.lifecycle.LifecycleService;
|
||||
|
||||
@@ -62,4 +63,8 @@ abstract class ServiceBase extends LifecycleService {
|
||||
|
||||
super.onDestroy();
|
||||
}
|
||||
|
||||
Handler getMainHandler() {
|
||||
return ApplicationEx.getMainHandler();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user