Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 17ee5dbc authored by Neil Fuller's avatar Neil Fuller
Browse files

Remove a TODO associate with starting a thread

Switching to an alternative method to run something off
thread.

Bug: 31008728
Test: Internal automated testing / manual tests
Change-Id: Ia33ca29e8d83028a21af1dca22de75dd43eee119
parent 899a1f23
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ package com.android.server.timezone;

import android.content.Context;
import android.content.pm.PackageManager;
import android.os.AsyncTask;
import android.os.Binder;
import android.os.ParcelFileDescriptor;

@@ -56,10 +57,9 @@ final class RulesManagerServiceHelperImpl implements PermissionHelper, Executor
        return true;
    }

    // TODO Wake lock required?
    // TODO(nfuller): Wake lock required while running in background thread?
    @Override
    public void execute(Runnable runnable) {
        // TODO Is there a better way?
        new Thread(runnable).start();
        AsyncTask.execute(runnable);
    }
}