From 16bced7f47ba3ea1d77082b398e2b829c8c14490 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 20 Sep 2025 03:01:12 +0000 Subject: [PATCH 1/2] Initial plan From d7c4d7260f444e919e1a8ec90700beb4887903fa Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 20 Sep 2025 03:05:47 +0000 Subject: [PATCH 2/2] Fix font style changes during scrolling by removing layer type switching Co-authored-by: graycreate <5203798+graycreate@users.noreply.github.com> --- .../me/ghui/v2er/module/topic/TopicActivity.java | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/app/src/main/java/me/ghui/v2er/module/topic/TopicActivity.java b/app/src/main/java/me/ghui/v2er/module/topic/TopicActivity.java index bc8b24b3..efd0d26e 100644 --- a/app/src/main/java/me/ghui/v2er/module/topic/TopicActivity.java +++ b/app/src/main/java/me/ghui/v2er/module/topic/TopicActivity.java @@ -417,15 +417,9 @@ public void onScrolled(RecyclerView recyclerView, int dx, int dy) { @Override public void onScrollStateChanged(RecyclerView recyclerView, int newState) { - if (newState == RecyclerView.SCROLL_STATE_IDLE) { - if (recyclerView.getLayerType() != View.LAYER_TYPE_SOFTWARE) { - recyclerView.setLayerType(View.LAYER_TYPE_SOFTWARE, null); - } - } else { - if (recyclerView.getLayerType() != View.LAYER_TYPE_HARDWARE) { - recyclerView.setLayerType(View.LAYER_TYPE_HARDWARE, null); - } - } + // Layer type switching removed to prevent font style changes during scrolling + // The constant switching between LAYER_TYPE_HARDWARE and LAYER_TYPE_SOFTWARE + // was causing font rendering inconsistencies in WebView content } });