mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-23 18:02:15 -05:00
Better name for method argument
This commit is contained in:
parent
e16f8af667
commit
6b52f41e2c
@ -82,16 +82,17 @@ public class MessageContainerView extends LinearLayout implements OnClickListene
|
|||||||
private ClipboardManager mClipboardManager;
|
private ClipboardManager mClipboardManager;
|
||||||
private String mText;
|
private String mText;
|
||||||
private Map<AttachmentViewInfo, AttachmentView> attachments = new HashMap<AttachmentViewInfo, AttachmentView>();
|
private Map<AttachmentViewInfo, AttachmentView> attachments = new HashMap<AttachmentViewInfo, AttachmentView>();
|
||||||
private boolean displayPgpData;
|
private boolean displayPgpHeader;
|
||||||
private OpenPgpHeaderView openPgpHeaderView;
|
private OpenPgpHeaderView openPgpHeaderView;
|
||||||
|
|
||||||
|
|
||||||
public void initialize(AttachmentViewCallback attachmentCallback,
|
public void initialize(AttachmentViewCallback attachmentCallback,
|
||||||
OpenPgpHeaderViewCallback openPgpHeaderViewCallback, boolean displayPgpData) {
|
OpenPgpHeaderViewCallback openPgpHeaderViewCallback, boolean displayPgpHeader) {
|
||||||
Context context = getContext();
|
Context context = getContext();
|
||||||
|
|
||||||
this.attachmentCallback = attachmentCallback;
|
this.attachmentCallback = attachmentCallback;
|
||||||
this.openPgpHeaderViewCallback = openPgpHeaderViewCallback;
|
this.openPgpHeaderViewCallback = openPgpHeaderViewCallback;
|
||||||
|
this.displayPgpHeader = displayPgpHeader;
|
||||||
|
|
||||||
mOpenPgpHeaderStub = (ViewStub) findViewById(R.id.openpgp_header_stub);
|
mOpenPgpHeaderStub = (ViewStub) findViewById(R.id.openpgp_header_stub);
|
||||||
mSidebar = findViewById(R.id.message_sidebar);
|
mSidebar = findViewById(R.id.message_sidebar);
|
||||||
@ -118,9 +119,7 @@ public class MessageContainerView extends LinearLayout implements OnClickListene
|
|||||||
mInflater = LayoutInflater.from(context);
|
mInflater = LayoutInflater.from(context);
|
||||||
mMessageContentView.setVisibility(View.VISIBLE);
|
mMessageContentView.setVisibility(View.VISIBLE);
|
||||||
|
|
||||||
this.displayPgpData = displayPgpData;
|
if (displayPgpHeader) {
|
||||||
|
|
||||||
if (displayPgpData) {
|
|
||||||
openPgpHeaderView = (OpenPgpHeaderView) mOpenPgpHeaderStub.inflate();
|
openPgpHeaderView = (OpenPgpHeaderView) mOpenPgpHeaderStub.inflate();
|
||||||
openPgpHeaderView.initialize();
|
openPgpHeaderView.initialize();
|
||||||
}
|
}
|
||||||
@ -476,7 +475,7 @@ public class MessageContainerView extends LinearLayout implements OnClickListene
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (displayPgpData) {
|
if (displayPgpHeader) {
|
||||||
openPgpHeaderView.setOpenPgpData(messageViewContainer.signatureResult, messageViewContainer.encrypted,
|
openPgpHeaderView.setOpenPgpData(messageViewContainer.signatureResult, messageViewContainer.encrypted,
|
||||||
messageViewContainer.pgpPendingIntent);
|
messageViewContainer.pgpPendingIntent);
|
||||||
openPgpHeaderView.setCallback(openPgpHeaderViewCallback);
|
openPgpHeaderView.setCallback(openPgpHeaderViewCallback);
|
||||||
|
@ -67,8 +67,8 @@ public class MessageTopView extends LinearLayout {
|
|||||||
|
|
||||||
for (MessageViewContainer container : messageViewInfo.containers) {
|
for (MessageViewContainer container : messageViewInfo.containers) {
|
||||||
MessageContainerView view = (MessageContainerView) mInflater.inflate(R.layout.message_container, null);
|
MessageContainerView view = (MessageContainerView) mInflater.inflate(R.layout.message_container, null);
|
||||||
view.initialize(attachmentCallback, openPgpHeaderViewCallback,
|
boolean displayPgpHeader = !Account.NO_OPENPGP_PROVIDER.equals(account.getOpenPgpProvider());
|
||||||
!Account.NO_OPENPGP_PROVIDER.equals(account.getOpenPgpProvider()));
|
view.initialize(attachmentCallback, openPgpHeaderViewCallback, displayPgpHeader);
|
||||||
view.setMessageViewContainer(container);
|
view.setMessageViewContainer(container);
|
||||||
|
|
||||||
containerViews.addView(view);
|
containerViews.addView(view);
|
||||||
|
Loading…
Reference in New Issue
Block a user