mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
adapt indentation
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user