From 1ebd35d08c18483539876d7bd17a1c7f339f7c8e Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 10 Aug 2023 19:54:42 +0200 Subject: [PATCH] Log window layout info --- app/build.gradle | 2 +- app/src/main/java/eu/faircode/email/ActivityView.java | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 19c62a8643..e49556066c 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -454,7 +454,7 @@ dependencies { def flatbuffers_version = "2.0.0" def activity_version = "1.7.2" // 1.8.0-alpha06 def fragment_version = "1.6.1" // 1.7.0-alpha02 - def windows_version = "1.0.0" // 1.2.0-beta01 + def windows_version = "1.2.0-beta01" def webkit_version = "1.7.0" // 1.8.0-rc01 def recyclerview_version = "1.3.1" def coordinatorlayout_version = "1.2.0" diff --git a/app/src/main/java/eu/faircode/email/ActivityView.java b/app/src/main/java/eu/faircode/email/ActivityView.java index fb4bf2fb61..0d45c53e6b 100644 --- a/app/src/main/java/eu/faircode/email/ActivityView.java +++ b/app/src/main/java/eu/faircode/email/ActivityView.java @@ -1077,14 +1077,14 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB @Override protected void onStart() { super.onStart(); - if (BuildConfig.DEBUG) + if (!Helper.isPlayStoreInstall()) infoTracker.addWindowLayoutInfoListener(this, Runnable::run, layoutStateChangeCallback); } @Override protected void onStop() { super.onStop(); - if (BuildConfig.DEBUG) + if (!Helper.isPlayStoreInstall()) infoTracker.removeWindowLayoutInfoListener(layoutStateChangeCallback); } @@ -2549,10 +2549,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB private final Consumer layoutStateChangeCallback = new Consumer() { @Override public void accept(WindowLayoutInfo info) { - List features = info.getDisplayFeatures(); - Log.i("Display features=" + features.size()); - for (DisplayFeature feature : features) - EntityLog.log(ActivityView.this, "Display feature bounds=" + feature.getBounds()); + EntityLog.log(ActivityView.this, "Window layout=" + info); } }; }