Skip to content
This repository has been archived by the owner on Feb 26, 2023. It is now read-only.

Commit

Permalink
v1.0.9: allow start() when PlaybackCompleted
Browse files Browse the repository at this point in the history
  • Loading branch information
mfietz committed Jan 8, 2016
1 parent a6ee8c1 commit 4e782cf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ apply plugin: "com.android.library"

android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
buildToolsVersion "23.0.2"
defaultConfig {
minSdkVersion 9
targetSdkVersion 23
versionCode 1
versionName "1.0.6"
versionName "1.0.9"
}
buildTypes {
release {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,16 @@ public void stop() {

public void start() {
switch (mCurrentState) {
case STATE_PREPARED:
case STATE_PLAYBACK_COMPLETED:
try {
initStream();
} catch (IOException e) {
Log.e(TAG, "initStream() failed");
error();
return;
}
// deliberate fallthrough
case STATE_PREPARED:
mCurrentState = STATE_STARTED;
Log.d(TAG, "State changed to STATE_STARTED");
mContinue = true;
Expand Down

0 comments on commit 4e782cf

Please sign in to comment.