fix: message statistic page header cell layout (#40)
This commit is contained in:
parent
82e5adf73e
commit
30b41f76f5
@ -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) {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user