Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions app/src/main/java/me/ghui/v2er/module/topic/TopicActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
});

Expand Down
Loading