adapt indentation

This commit is contained in:
cyberta
2021-02-15 20:32:33 +01:00
committed by cyBerta
parent 4064f3a30b
commit 5a5abaffe4
2 changed files with 26 additions and 26 deletions
@@ -74,17 +74,17 @@ public class DataCollectionTask extends AsyncTask<Void, Void, Set<String>> {
Log.d(TAG, "performance test - collect Data start");
HashSet<String> emojiCodePoints = new HashSet<>();
DataCollector dataCollector = new DataCollector(dcContext,
contactMapSources,
featureCollections,
lastPositions,
emojiCodePoints,
emojiProvider,
boundingBuilder);
contactMapSources,
featureCollections,
lastPositions,
emojiCodePoints,
emojiProvider,
boundingBuilder);
for (int contactId : contactIds) {
dataCollector.updateSource(chatId,
contactId,
System.currentTimeMillis() - TIME_FRAME,
TIMESTAMP_NOW);
dataCollector.updateSource(chatId,
contactId,
System.currentTimeMillis() - TIME_FRAME,
TIMESTAMP_NOW);
if (this.isCancelled()) {
break;
}
@@ -301,23 +301,23 @@ public class MapDataManager implements DcEventCenter.DcEventDelegate,
}
public void handleEmojiCodepoints(Set<String> emojiCodePoints) {
// generate only new emoji bitmaps, so remove the ones from the set that we already generated
emojiCodePoints.removeAll(this.emojiCodePoints);
if (emojiCodePoints.isEmpty()) {
return;
}
ExecutorService executor = Executors.newSingleThreadExecutor();
Handler handler = new Handler(Looper.getMainLooper());
executor.execute(() -> {
for (String codePoint : emojiCodePoints) {
Bitmap emoji = emojiProvider.getEmojiBitmap(codePoint, 0.5f, true);
handler.post(() -> {
mapboxStyle.addImage(codePoint, emoji);
emojiCodePoints.add(codePoint);
});
// generate only new emoji bitmaps, so remove the ones from the set that we already generated
emojiCodePoints.removeAll(this.emojiCodePoints);
if (emojiCodePoints.isEmpty()) {
return;
}
});
ExecutorService executor = Executors.newSingleThreadExecutor();
Handler handler = new Handler(Looper.getMainLooper());
executor.execute(() -> {
for (String codePoint : emojiCodePoints) {
Bitmap emoji = emojiProvider.getEmojiBitmap(codePoint, 0.5f, true);
handler.post(() -> {
mapboxStyle.addImage(codePoint, emoji);
emojiCodePoints.add(codePoint);
});
}
});
}
public void filterRange(long startTimestamp, long endTimestamp) {