Remove duplicate qr share item

This commit is contained in:
世界 2021-03-20 12:44:46 +08:00
parent c483b0f616
commit 18fc50b9eb
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4
1 changed files with 0 additions and 12 deletions

View File

@ -78,7 +78,6 @@ public class ChatEditTypeActivity extends BaseFragment implements NotificationCe
private LinkActionView permanentLinkView;
private TextCell manageLinksTextView;
private TextInfoPrivacyCell manageLinksInfoCell;
private TextSettingsCell shareQRCell;
private ShadowSectionCell sectionCell2;
private TextInfoPrivacyCell infoCell;
private TextSettingsCell textCell;
@ -369,17 +368,6 @@ public class ChatEditTypeActivity extends BaseFragment implements NotificationCe
permanentLinkView.setUsers(0, null);
privateContainer.addView(permanentLinkView);
shareQRCell = new TextSettingsCell(context);
shareQRCell.setBackgroundDrawable(Theme.getSelectorDrawable(false));
shareQRCell.setText(LocaleController.getString("ShareQRCode", R.string.ShareQRCode), false);
privateContainer.addView(shareQRCell, LayoutHelper.createLinear(LayoutHelper.MATCH_PARENT, LayoutHelper.WRAP_CONTENT));
shareQRCell.setOnClickListener(v -> {
if (invite == null) {
return;
}
ProxyUtil.showQrDialog(getParentActivity(),invite.link);
});
checkTextView = new TextInfoPrivacyCell(context);
checkTextView.setBackgroundDrawable(Theme.getThemedDrawable(context, R.drawable.greydivider_bottom, Theme.key_windowBackgroundGrayShadow));
checkTextView.setBottomPadding(6);