private Map remap(Map map) { ReportField areportfield[]; HashMap hashmap; int i; int j; int k; ReportField areportfield1[] = ACRA.getConfig().customReportContent(); areportfield = areportfield1; if (areportfield1.length == 0) { areportfield = ACRAConstants.DEFAULT_REPORT_FIELDS; } j = 0; hashmap = new HashMap(); k = areportfield.length; i = 0; _L2: ReportField reportfield; if (i >= k) { break MISSING_BLOCK_LABEL_263; } reportfield = areportfield[i]; static class _cls1 { static final int $SwitchMap$org$acra$ReportField[]; static { $SwitchMap$org$acra$ReportField = new int[ReportField.values().length]; try { $SwitchMap$org$acra$ReportField[ReportField.APP_VERSION_NAME.ordinal()] = 1; } catch (NoSuchFieldError nosuchfielderror1) { } try { $SwitchMap$org$acra$ReportField[ReportField.ANDROID_VERSION.ordinal()] = 2; } catch (NoSuchFieldError nosuchfielderror) { return; } } } switch (_cls1..SwitchMap.org.acra.ReportField[reportfield.ordinal()]) { default: hashmap.put((new StringBuilder()).append("entry.").append(j).append(".single").toString(), map.get(reportfield)); break; case 1: // '\001' break; /* Loop/switch isn't completed */
private String buildBody(CrashReportData errorContent) { StringBuilder builder = new StringBuilder(); ReportField[] fields = ACRA.getConfig().customReportContent(); if (fields.length == 0) { fields = ACRA.DEFAULT_MAIL_REPORT_FIELDS; } for (ReportField field : fields) { builder.append(field.toString()).append("="); builder.append(errorContent.get(field)); builder.append('\n'); } return builder.toString(); }
static { $SwitchMap$org$acra$ReportField = new int[ReportField.values().length]; try { $SwitchMap$org$acra$ReportField[ReportField.APP_VERSION_NAME.ordinal()] = 1; } catch (NoSuchFieldError nosuchfielderror1) { } try { $SwitchMap$org$acra$ReportField[ReportField.ANDROID_VERSION.ordinal()] = 2; } catch (NoSuchFieldError nosuchfielderror) { return; } }