}
@NonNull
@Override
Element collect(ReportField reportField, ReportBuilder reportBuilder) {
String result = getDeviceId();
<BUG>return result != null ? new SimpleElement(result) : ACRAConstants.NOT_AVAILABLE;
</BUG>
}
@SuppressLint("HardwareIds")
@Nullable

}
@Override
boolean shouldCollect(Set<ReportField> crashReportFields, ReportField collect, ReportBuilder reportBuilder) {
return super.shouldCollect(crashReportFields, collect, reportBuilder) && prefs.getBoolean(ACRA.PREF_ENABLE_DEVICE_ID, true)
&& pm.hasPermission(Manifest.permission.READ_PHONE_STATE);
}
@NonNull
@Override
Element collect(ReportField reportField, ReportBuilder reportBuilder) {
String result = getDeviceId();
return result != null ? new StringElement(result) : ACRAConstants.NOT_AVAILABLE;
}
@SuppressLint("HardwareIds")
@Nullable
