Reenable build errors on lintFailure
This commit is contained in:
@@ -20,10 +20,10 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
lintOptions {
|
lintOptions {
|
||||||
abortOnError false
|
abortOnError true
|
||||||
|
warning "MissingTranslation"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation "com.android.support:support-compat:26.1.0"
|
implementation "com.android.support:support-compat:26.1.0"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -66,13 +66,19 @@ public class MonitorActivity extends Activity {
|
|||||||
final int audioEncoding = AudioCodecDefines.ENCODING;
|
final int audioEncoding = AudioCodecDefines.ENCODING;
|
||||||
|
|
||||||
final int bufferSize = AudioRecord.getMinBufferSize(frequency, channelConfiguration, audioEncoding);
|
final int bufferSize = AudioRecord.getMinBufferSize(frequency, channelConfiguration, audioEncoding);
|
||||||
final AudioRecord audioRecord = new AudioRecord(
|
final AudioRecord audioRecord;
|
||||||
|
try {
|
||||||
|
audioRecord = new AudioRecord(
|
||||||
MediaRecorder.AudioSource.MIC,
|
MediaRecorder.AudioSource.MIC,
|
||||||
frequency,
|
frequency,
|
||||||
channelConfiguration,
|
channelConfiguration,
|
||||||
audioEncoding,
|
audioEncoding,
|
||||||
bufferSize
|
bufferSize
|
||||||
);
|
);
|
||||||
|
} catch (SecurityException e) {
|
||||||
|
// This should never happen, we asked for permission before
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
|
|
||||||
final int pcmBufferSize = bufferSize*2;
|
final int pcmBufferSize = bufferSize*2;
|
||||||
final short[] pcmBuffer = new short[pcmBufferSize];
|
final short[] pcmBuffer = new short[pcmBufferSize];
|
||||||
|
|||||||
Reference in New Issue
Block a user