mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-23 18:02:15 -05:00
re-enable setOnFlagListener
This commit is contained in:
parent
06baf3f602
commit
9deea33426
@ -1137,6 +1137,12 @@ public class MessageView extends K9Activity implements OnClickListener {
|
||||
mMessageView.loadBodyFromUrl("file:///android_asset/downloading.html");
|
||||
}
|
||||
mMessageView.setHeaders(message, account);
|
||||
mMessageView.setOnFlagListener(new OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
onFlag();
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -91,13 +91,8 @@ public class SingleMessageView extends LinearLayout {
|
||||
public void setHeaders(final Message message, Account account) {
|
||||
try {
|
||||
mHeaderContainer.populate(message, account);
|
||||
mHeaderContainer.setOnFlagListener(new OnClickListener() {
|
||||
@Override public void onClick(View v) {
|
||||
if (message != null) {
|
||||
//TODO: reenable onFlag();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
} catch (Exception me) {
|
||||
Log.e(K9.LOG_TAG, "setHeaders - error", me);
|
||||
}
|
||||
@ -108,6 +103,11 @@ public class SingleMessageView extends LinearLayout {
|
||||
mDownloadRemainder.setVisibility(View.VISIBLE);
|
||||
}
|
||||
}
|
||||
|
||||
public void setOnFlagListener(OnClickListener listener) {
|
||||
mHeaderContainer.setOnFlagListener(listener);
|
||||
}
|
||||
|
||||
public void showAllHeaders() {
|
||||
mHeaderContainer.onShowAdditionalHeaders();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user