Added executor tracing

This commit is contained in:
M66B
2019-10-10 13:26:44 +02:00
parent 2c07b622e1
commit e058cc17d1
15 changed files with 61 additions and 43 deletions

View File

@@ -57,7 +57,6 @@ import java.net.URL;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Semaphore;
import java.util.concurrent.TimeUnit;
@@ -65,7 +64,7 @@ class ImageHelper {
private static final float MIN_LUMINANCE = 0.33f;
private static final ExecutorService executor =
Executors.newSingleThreadExecutor(Helper.backgroundThreadFactory);
Helper.getBackgroundExecutor(1, "image");
static Bitmap generateIdenticon(@NonNull String email, int size, int pixels, boolean dark) {
byte[] hash = getHash(email);