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

Method getTypes

app/src/main/java/eu/faircode/email/FragmentLogs.java:238–247  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

236 }
237
238 private List<EntityLog.Type> getTypes() {
239 List<EntityLog.Type> types = new ArrayList<>();
240
241 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
242 for (EntityLog.Type type : EntityLog.Type.values())
243 if (prefs.getBoolean(getKey(type), true))
244 types.add(type);
245
246 return types;
247 }
248
249 private String getKey(EntityLog.Type type) {
250 return "show_log_" + type.toString().toLowerCase(Locale.ROOT);

Callers 2

onChangedMethod · 0.95
onClickMethod · 0.95

Calls 3

getKeyMethod · 0.95
getBooleanMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected