1
0
mirror of https://github.com/NekoX-Dev/NekoX.git synced 2024-11-30 07:40:11 +01:00

Fix: showIdAndDc text improper show

This commit is contained in:
luvletter2333 2021-03-15 00:49:46 +08:00
parent 6acd0f6ebe
commit 77c8d8ed37
No known key found for this signature in database
GPG Key ID: BFD68B892BECC1D8

View File

@ -1935,7 +1935,8 @@ public class ProfileActivity extends BaseFragment implements NotificationCenter.
listView.stopScroll();
avatarContainer.setVisibility(expanded ? INVISIBLE : VISIBLE);
nameTextView[1].setVisibility(expanded ? INVISIBLE : VISIBLE);
idTextView.setVisibility(expanded ? INVISIBLE : VISIBLE);
if (Math.min(1f, extraHeight / AndroidUtilities.dp(88f)) > 0.85 && !searchMode && NekoConfig.showIdAndDc)
idTextView.setVisibility(expanded ? INVISIBLE : VISIBLE);
onlineTextView[1].setVisibility(expanded ? INVISIBLE : VISIBLE);
mediaCounterTextView.setVisibility(expanded ? INVISIBLE : VISIBLE);
callItem.setVisibility(expanded || !callItemVisible ? GONE : INVISIBLE);
@ -6323,7 +6324,8 @@ public class ProfileActivity extends BaseFragment implements NotificationCenter.
avatarContainer.setVisibility(View.VISIBLE);
nameTextView[1].setVisibility(View.VISIBLE);
onlineTextView[1].setVisibility(View.VISIBLE);
idTextView.setVisibility(View.VISIBLE);
if (Math.min(1f, extraHeight / AndroidUtilities.dp(88f)) > 0.85 && !searchMode && NekoConfig.showIdAndDc)
idTextView.setVisibility(View.VISIBLE);
actionBar.onSearchFieldVisibilityChanged(searchTransitionProgress > 0.5f);
if (otherItem != null) {