Skip to content

Commit ea3ba52

Browse files
committed
Forced profile info section into one card to fix open-animation flicker.
1 parent 7bc72ea commit ea3ba52

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

TMessagesProj/src/main/java/org/telegram/ui/ProfileActivity.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10887,6 +10887,16 @@ private void updateRowsIds() {
1088710887
}
1088810888
musicView.setVisibility(hasMusic ? View.VISIBLE : View.GONE);
1088910889
}
10890+
if (listView != null && infoStartRow >= 0 && infoEndRow >= infoStartRow) {
10891+
if (listView.forcedSections == null) {
10892+
listView.forcedSections = new ArrayList<>();
10893+
} else {
10894+
listView.forcedSections.clear();
10895+
}
10896+
listView.forcedSections.add(AndroidUtilities.pack(infoStartRow, infoEndRow));
10897+
} else if (listView != null && listView.forcedSections != null) {
10898+
listView.forcedSections.clear();
10899+
}
1089010900
}
1089110901

1089210902
private Drawable getScamDrawable(int type) {

0 commit comments

Comments
 (0)