fix: message statistic page header cell layout (#40)

This commit is contained in:
Kofua 2024-07-12 09:37:00 +08:00 committed by GitHub
parent 82e5adf73e
commit 30b41f76f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -29581,7 +29581,7 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
}
if (canViewStats) {
items.add(LocaleController.getString("ViewStats", R.string.ViewStats));
options.add(28);
options.add(OPTION_STATISTICS);
icons.add(R.drawable.msg_stats);
}
if (allowUnpin) {

View File

@ -1004,11 +1004,11 @@ public class MessageStatisticActivity extends BaseFragment implements Notificati
HeaderCell headerCell = (HeaderCell) holder.itemView;
if (position == overviewHeaderRow) {
headerCell.setTopMargin(9);
headerCell.setPadding(0, 0, 0, AndroidUtilities.dp(8));
headerCell.setPadding(AndroidUtilities.dp(16), 0, AndroidUtilities.dp(16), AndroidUtilities.dp(8));
headerCell.setText(LocaleController.formatString("StatisticOverview", R.string.StatisticOverview));
} else {
headerCell.setTopMargin(11);
headerCell.setPadding(0, 0, 0, 0);
headerCell.setPadding(AndroidUtilities.dp(16), 0, AndroidUtilities.dp(16), 0);
headerCell.setText(LocaleController.formatString("PublicShares", R.string.PublicShares));
}
break;