Merge branch 'audiorecorder-1.1.24'

This commit is contained in:
Alexey Kuznetsov 2016-03-29 13:24:09 +03:00
commit 20889fe14a
2 changed files with 9 additions and 2 deletions

View file

@ -8,8 +8,8 @@ android {
applicationId "com.github.axet.audiorecorder"
minSdkVersion 16
targetSdkVersion 23
versionCode 44
versionName "1.1.23"
versionCode 45
versionName "1.1.24"
}
signingConfigs {
release {

View file

@ -308,6 +308,13 @@ public class PitchView extends ViewGroup {
int cut = data.size() - max;
data.subList(0, cut).clear();
samples += cut;
int m = data.size() - 1;
// screen rotate may cause play/edit offsets off screen
if (editPos > m)
editPos = m;
if (playPos > m)
playPos = m;
}
}