fix edit crash
This commit is contained in:
parent
ca4ae96cd0
commit
d3de2ff202
1 changed files with 5 additions and 1 deletions
|
|
@ -589,7 +589,11 @@ public class RecordingActivity extends AppCompatThemeActivity {
|
|||
float x = event.getX();
|
||||
if (x < 0)
|
||||
x = 0;
|
||||
editSample = pitch.edit(x) * recording.samplesUpdate;
|
||||
long edit = pitch.edit(x);
|
||||
if (edit == -1)
|
||||
edit(false, false);
|
||||
else
|
||||
editSample = pitch.edit(x) * recording.samplesUpdate;
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue