MCPcopy Create free account
hub / github.com/M66B/FairEmail / onExecute

Method onExecute

app/src/main/java/eu/faircode/email/ActivityEML.java:182–194  ·  view source on GitHub ↗
(Context context, Bundle args)

Source from the content-addressed store, hash-verified

180 args.putParcelable("uri", getIntent().getData());
181 new SimpleTask<File>() {
182 @Override
183 protected File onExecute(Context context, Bundle args) throws Throwable {
184 Uri uri = args.getParcelable("uri");
185
186 if (uri == null)
187 throw new FileNotFoundException();
188
189 File dir = Helper.ensureExists(context, "shared");
190 File file = new File(dir, "email.eml");
191
192 Helper.copy(context, uri, file);
193 return file;
194 }
195
196 @Override
197 protected void onExecuted(Bundle args, File file) {

Callers

nothing calls this directly

Calls 15

ensureExistsMethod · 0.95
copyMethod · 0.95
checkMethod · 0.95
getSessionPropertiesMethod · 0.95
getInstanceMethod · 0.95
formatAddressesMethod · 0.95
getFromMethod · 0.95
getToMethod · 0.95
getReplyMethod · 0.95
getCcMethod · 0.95
getBccMethod · 0.95
getSentMethod · 0.95

Tested by

no test coverage detected