Remove custom WindowSizeClass and just depend on Material Adaptive WindowSizeClass.

Co-authored-by: jeffrey-signal <jeffrey@signal.org>
This commit is contained in:
Alex Hart
2025-10-31 12:50:33 -03:00
committed by jeffrey-signal
parent 95c9776b4d
commit 109f651681
32 changed files with 202 additions and 246 deletions

View File

@@ -34,13 +34,14 @@ import org.thoughtcrime.securesms.util.ServiceUtil;
import org.thoughtcrime.securesms.util.TextSecurePreferences;
import org.thoughtcrime.securesms.util.Util;
import org.thoughtcrime.securesms.util.VersionTracker;
import org.thoughtcrime.securesms.window.WindowSizeClass;
import org.whispersystems.signalservice.api.push.ServiceId.ACI;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.Locale;
import static org.thoughtcrime.securesms.window.WindowSizeClassExtensionsKt.getWindowSizeClass;
public class LogSectionSystemInfo implements LogSection {
@Override
@@ -62,7 +63,7 @@ public class LogSectionSystemInfo implements LogSection {
builder.append("Screen : ").append(getScreenResolution(context)).append(", ")
.append(ScreenDensity.get(context)).append(", ")
.append(getScreenRefreshRate(context)).append("\n");
builder.append("WindowSizeClass : ").append(WindowSizeClass.Companion.getWindowSizeClass(context.getResources())).append("\n");
builder.append("WindowSizeClass : ").append(getWindowSizeClass(context.getResources())).append("\n");
builder.append("Font Scale : ").append(context.getResources().getConfiguration().fontScale).append("\n");
builder.append("Animation Scale : ").append(ContextUtil.getAnimationScale(context)).append("\n");
builder.append("Android : ").append(Build.VERSION.RELEASE).append(", API ")