Skip to content

Commit

Permalink
fix: message statistic page header cell layout (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
zjns authored Jul 12, 2024
1 parent 82e5adf commit 30b41f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29581,7 +29581,7 @@ public void setAutoDeleteHistory(int time, int action) {
}
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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1004,11 +1004,11 @@ public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {
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;
Expand Down

0 comments on commit 30b41f7

Please sign in to comment.