fix double tap

This commit is contained in:
Alexey Kuznetsov 2017-06-16 19:23:17 +03:00
commit 807737ddf3
2 changed files with 4 additions and 3 deletions

View file

@ -43,5 +43,5 @@ android {
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.github.axet:android-audio-library:0.0.53' // compile project(':android-audio-library')
compile 'com.github.axet:android-audio-library:0.0.54' // compile project(':android-audio-library')
}

View file

@ -222,7 +222,8 @@ public class RecordingActivity extends AppCompatActivity {
done.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
done.setClickable(false);
if (encoder != null)
return;
stopRecording(getString(R.string.encoding));
try {
encoding(new Runnable() {
@ -800,7 +801,7 @@ public class RecordingActivity extends AppCompatActivity {
RecordingService.startService(this, targetFile.getName(), thread != null, encoder != null);
final ProgressDialog d = new ProgressDialog(this);
d.setTitle(getString(R.string.encoding_title));
d.setTitle(R.string.encoding_title);
d.setMessage(".../" + targetFile.getName());
d.setMax(100);
d.setCancelable(false);