mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 17:29:32 +01:00
Rename FeatureFlags -> RemoteConfig.
This commit is contained in:
@@ -6,24 +6,24 @@ import androidx.annotation.NonNull;
|
||||
|
||||
import com.annimon.stream.Stream;
|
||||
|
||||
import org.thoughtcrime.securesms.util.FeatureFlags;
|
||||
import org.thoughtcrime.securesms.util.RemoteConfig;
|
||||
import org.thoughtcrime.securesms.util.Util;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
public class LogSectionFeatureFlags implements LogSection {
|
||||
public class LogSectionRemoteConfig implements LogSection {
|
||||
|
||||
@Override
|
||||
public @NonNull String getTitle() {
|
||||
return "FEATURE FLAGS";
|
||||
return "REMOTE CONFIG";
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NonNull CharSequence getContent(@NonNull Context context) {
|
||||
StringBuilder out = new StringBuilder();
|
||||
Map<String, Object> memory = FeatureFlags.getDebugMemoryValues();
|
||||
Map<String, Object> disk = FeatureFlags.getDebugDiskValues();
|
||||
Map<String, Object> pending = FeatureFlags.getDebugPendingDiskValues();
|
||||
Map<String, Object> memory = RemoteConfig.getDebugMemoryValues();
|
||||
Map<String, Object> disk = RemoteConfig.getDebugDiskValues();
|
||||
Map<String, Object> pending = RemoteConfig.getDebugPendingDiskValues();
|
||||
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);
|
||||
@@ -24,7 +24,7 @@ import org.thoughtcrime.securesms.dependencies.AppDependencies;
|
||||
import org.thoughtcrime.securesms.net.StandardUserAgentInterceptor;
|
||||
import org.thoughtcrime.securesms.providers.BlobProvider;
|
||||
import org.thoughtcrime.securesms.push.SignalServiceNetworkAccess;
|
||||
import org.thoughtcrime.securesms.util.FeatureFlags;
|
||||
import org.thoughtcrime.securesms.util.RemoteConfig;
|
||||
import org.signal.core.util.Stopwatch;
|
||||
|
||||
import java.io.IOException;
|
||||
@@ -77,7 +77,7 @@ public class SubmitDebugLogRepository {
|
||||
add(new LogSectionCapabilities());
|
||||
add(new LogSectionMemory());
|
||||
add(new LogSectionLocalMetrics());
|
||||
add(new LogSectionFeatureFlags());
|
||||
add(new LogSectionRemoteConfig());
|
||||
add(new LogSectionPin());
|
||||
if (Build.VERSION.SDK_INT >= 28) {
|
||||
add(new LogSectionPower());
|
||||
@@ -92,7 +92,7 @@ public class SubmitDebugLogRepository {
|
||||
add(new LogSectionTrace());
|
||||
add(new LogSectionThreads());
|
||||
add(new LogSectionThreadDump());
|
||||
if (FeatureFlags.internalUser()) {
|
||||
if (RemoteConfig.internalUser()) {
|
||||
add(new LogSectionSenderKey());
|
||||
}
|
||||
add(new LogSectionDatabaseSchema());
|
||||
|
||||
Reference in New Issue
Block a user