Skip to content

Commit

Permalink
sounds can now be paused when the component is in "inactive" state.
Browse files Browse the repository at this point in the history
version strings changed to v1.7
  • Loading branch information
vocollapse committed May 9, 2013
1 parent 2c6a4cd commit e270179
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
4 changes: 2 additions & 2 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.blockinger.game"
android:versionCode="10"
android:versionName="1.6" >
android:versionCode="11"
android:versionName="1.7" >

<uses-sdk
android:minSdkVersion="8"
Expand Down
4 changes: 2 additions & 2 deletions bin/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.blockinger.game"
android:versionCode="10"
android:versionName="1.6" >
android:versionCode="11"
android:versionName="1.7" >

<uses-sdk
android:minSdkVersion="8"
Expand Down
2 changes: 1 addition & 1 deletion res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
<string name="pref_accelerationV_title">Soft Drop Acceleration</string>


<string name="pref_version_summary">1.6\nTouch here to view the public repository of this project</string>
<string name="pref_version_summary">1.7\nTouch here to view the public repository of this project</string>
<string name="pref_version_title">Version</string>
<string name="repository_url">https://github.com/vocollapse/Blockinger</string>

Expand Down
6 changes: 0 additions & 6 deletions src/org/blockinger/game/components/Sound.java
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,6 @@ public void resume() {
}

public void pauseMusic() {
if(isInactive)
return;

isMusicReady = false;
if(musicPlayer != null) {
try{
Expand All @@ -323,9 +320,6 @@ public void pauseMusic() {
}

public void pause() {
if(isInactive)
return;

soundPool.autoPause();
pauseMusic();
}
Expand Down

0 comments on commit e270179

Please sign in to comment.