| 77 | import javax.mail.internet.MimeMessage; |
| 78 | |
| 79 | public class ActivityEML extends ActivityBase { |
| 80 | private TextView tvFrom; |
| 81 | private TextView tvTo; |
| 82 | private TextView tvReplyTo; |
| 83 | private TextView tvCc; |
| 84 | private TextView tvBcc; |
| 85 | private TextView tvSent; |
| 86 | private TextView tvReceived; |
| 87 | private TextView tvSubject; |
| 88 | private View vSeparatorAttachments; |
| 89 | private RecyclerView rvAttachment; |
| 90 | private TextView tvBody; |
| 91 | private TextView tvStructure; |
| 92 | private ImageButton ibEml; |
| 93 | private CardView cardStructure; |
| 94 | private CardView cardHeaders; |
| 95 | private TextView tvHeaders; |
| 96 | private TextView tvAuthentication; |
| 97 | private ContentLoadingProgressBar pbWait; |
| 98 | private FloatingActionButton fabSave; |
| 99 | private Group grpReady; |
| 100 | |
| 101 | private MessageHelper.AttachmentPart apart; |
| 102 | private static final int REQUEST_ATTACHMENT = 1; |
| 103 | private static final int REQUEST_ACCOUNT = 2; |
| 104 | |
| 105 | @Override |
| 106 | protected void onCreate(Bundle savedInstanceState) { |
| 107 | super.onCreate(savedInstanceState); |
| 108 | |
| 109 | View view = LayoutInflater.from(this).inflate(R.layout.activity_eml, null); |
| 110 | setContentView(view); |
| 111 | |
| 112 | getSupportActionBar().setDisplayHomeAsUpEnabled(true); |
| 113 | getSupportActionBar().setSubtitle("EML"); |
| 114 | |
| 115 | tvFrom = findViewById(R.id.tvFrom); |
| 116 | tvTo = findViewById(R.id.tvTo); |
| 117 | tvReplyTo = findViewById(R.id.tvReplyTo); |
| 118 | tvCc = findViewById(R.id.tvCc); |
| 119 | tvBcc = findViewById(R.id.tvBcc); |
| 120 | tvSent = findViewById(R.id.tvSent); |
| 121 | tvReceived = findViewById(R.id.tvReceived); |
| 122 | tvSubject = findViewById(R.id.tvSubject); |
| 123 | vSeparatorAttachments = findViewById(R.id.vSeparatorAttachments); |
| 124 | rvAttachment = findViewById(R.id.rvAttachment); |
| 125 | tvBody = findViewById(R.id.tvBody); |
| 126 | tvStructure = findViewById(R.id.tvStructure); |
| 127 | ibEml = findViewById(R.id.ibEml); |
| 128 | cardStructure = findViewById(R.id.cardStructure); |
| 129 | cardHeaders = findViewById(R.id.cardHeaders); |
| 130 | tvHeaders = findViewById(R.id.tvHeaders); |
| 131 | tvAuthentication = findViewById(R.id.tvAuthentication); |
| 132 | pbWait = findViewById(R.id.pbWait); |
| 133 | fabSave = findViewById(R.id.fabSave); |
| 134 | grpReady = findViewById(R.id.grpReady); |
| 135 | |
| 136 | rvAttachment.setHasFixedSize(false); |
nothing calls this directly
no outgoing calls
no test coverage detected