mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 09:20:19 +01:00
Convert FeatureFlags to kotlin.
This commit is contained in:
committed by
Alex Hart
parent
e62b8de1bc
commit
0b66a8701e
@@ -21,10 +21,10 @@ public class LogSectionFeatureFlags implements LogSection {
|
||||
@Override
|
||||
public @NonNull CharSequence getContent(@NonNull Context context) {
|
||||
StringBuilder out = new StringBuilder();
|
||||
Map<String, Object> memory = FeatureFlags.getMemoryValues();
|
||||
Map<String, Object> disk = FeatureFlags.getDiskValues();
|
||||
Map<String, Object> pending = FeatureFlags.getPendingDiskValues();
|
||||
Map<String, Object> forced = FeatureFlags.getForcedValues();
|
||||
Map<String, Object> memory = FeatureFlags.getDebugMemoryValues();
|
||||
Map<String, Object> disk = FeatureFlags.getDebugDiskValues();
|
||||
Map<String, Object> pending = FeatureFlags.getDebugPendingDiskValues();
|
||||
Map<String, Object> forced = FeatureFlags.getDebugForcedValues();
|
||||
int remoteLength = Stream.of(memory.keySet()).map(String::length).max(Integer::compareTo).orElse(0);
|
||||
int diskLength = Stream.of(disk.keySet()).map(String::length).max(Integer::compareTo).orElse(0);
|
||||
int pendingLength = Stream.of(pending.keySet()).map(String::length).max(Integer::compareTo).orElse(0);
|
||||
|
||||
Reference in New Issue
Block a user