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

Method onCreate

app/src/main/java/eu/faircode/email/FragmentRule.java:268–287  ·  view source on GitHub ↗
(Bundle savedInstanceState)

Source from the content-addressed store, hash-verified

266 ));
267
268 @Override
269 public void onCreate(Bundle savedInstanceState) {
270 super.onCreate(savedInstanceState);
271
272 // Get arguments
273 Bundle args = getArguments();
274 if (args.getBoolean("copy"))
275 copy = args.getLong("id", -1);
276 else
277 id = args.getLong("id", -1);
278 account = args.getLong("account", -1);
279 protocol = args.getInt("protocol", EntityAccount.TYPE_IMAP);
280 folder = args.getLong("folder", -1);
281 type = args.getString("type");
282
283 if (savedInstanceState != null)
284 sound = savedInstanceState.getParcelable("fair:sound");
285
286 DF = Helper.getDateTimeInstance(getContext(), DateFormat.SHORT, DateFormat.SHORT);
287 }
288
289 @Override
290 @Nullable

Callers

nothing calls this directly

Calls 6

getDateTimeInstanceMethod · 0.95
getArgumentsMethod · 0.80
getBooleanMethod · 0.80
getLongMethod · 0.80
getIntMethod · 0.45
getStringMethod · 0.45

Tested by

no test coverage detected