mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-28 00:20:50 +01:00
Check for two state owner in simple task
This commit is contained in:
@@ -82,6 +82,9 @@ public abstract class SimpleTask<T> implements LifecycleObserver {
|
||||
private void run(final Context context, final LifecycleOwner owner, final Bundle args, final String name) {
|
||||
final Handler handler = new Handler();
|
||||
|
||||
if (owner instanceof TwoStateOwner)
|
||||
Log.e(new Throwable("SimpleTask/TwoStateOwner"));
|
||||
|
||||
// prevent garbage collection
|
||||
synchronized (tasks) {
|
||||
tasks.add(this);
|
||||
|
||||
Reference in New Issue
Block a user