Skip to content

Commit

Permalink
Fix bug: application crash when push back button while playing audio …
Browse files Browse the repository at this point in the history
…in Show activity.
  • Loading branch information
unknown committed Dec 1, 2009
1 parent 12211fa commit 9facac3
Show file tree
Hide file tree
Showing 28 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bin
Binary file removed bin/Pocket VOA.apk
Binary file not shown.
Binary file removed bin/classes.dex
Binary file not shown.
Binary file removed bin/cn/yo2/aquarium/pocketvoa/Article.class
Binary file not shown.
Binary file removed bin/cn/yo2/aquarium/pocketvoa/Main$1.class
Binary file not shown.
Binary file removed bin/cn/yo2/aquarium/pocketvoa/Main$2.class
Binary file not shown.
Binary file removed bin/cn/yo2/aquarium/pocketvoa/Main$3.class
Binary file not shown.
Binary file removed bin/cn/yo2/aquarium/pocketvoa/Main$4.class
Binary file not shown.
Binary file removed bin/cn/yo2/aquarium/pocketvoa/Main.class
Binary file not shown.
Binary file removed bin/cn/yo2/aquarium/pocketvoa/R$attr.class
Binary file not shown.
Binary file removed bin/cn/yo2/aquarium/pocketvoa/R$drawable.class
Binary file not shown.
Binary file removed bin/cn/yo2/aquarium/pocketvoa/R$id.class
Binary file not shown.
Binary file removed bin/cn/yo2/aquarium/pocketvoa/R$layout.class
Binary file not shown.
Binary file removed bin/cn/yo2/aquarium/pocketvoa/R$string.class
Binary file not shown.
Binary file removed bin/cn/yo2/aquarium/pocketvoa/R.class
Binary file not shown.
Binary file removed bin/cn/yo2/aquarium/pocketvoa/RowAdapter.class
Binary file not shown.
Binary file removed bin/cn/yo2/aquarium/pocketvoa/Show$1.class
Binary file not shown.
Binary file removed bin/cn/yo2/aquarium/pocketvoa/Show$2.class
Binary file not shown.
Binary file removed bin/cn/yo2/aquarium/pocketvoa/Show$3.class
Binary file not shown.
Binary file removed bin/cn/yo2/aquarium/pocketvoa/Show$4.class
Binary file not shown.
Binary file removed bin/cn/yo2/aquarium/pocketvoa/Show$5.class
Binary file not shown.
Binary file removed bin/cn/yo2/aquarium/pocketvoa/Show$6.class
Binary file not shown.
Binary file removed bin/cn/yo2/aquarium/pocketvoa/Show$7.class
Binary file not shown.
Binary file removed bin/cn/yo2/aquarium/pocketvoa/Show$8.class
Binary file not shown.
Binary file removed bin/cn/yo2/aquarium/pocketvoa/Show.class
Binary file not shown.
Binary file removed bin/cn/yo2/aquarium/pocketvoa/ViewWraper.class
Binary file not shown.
Binary file removed bin/resources.ap_
Binary file not shown.
10 changes: 9 additions & 1 deletion src/cn/yo2/aquarium/pocketvoa/Show.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package cn.yo2.aquarium.pocketvoa;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.IOException;
Expand Down Expand Up @@ -560,6 +559,15 @@ private String buildHtml(String title, String text) {

return s.toString();
}

@Override
protected void onPause() {
mMediaPlayer.pause();
mIsPlaying = false;
mBtnStart.setEnabled(!mIsPlaying);
mBtnPause.setEnabled(mIsPlaying);
super.onPause();
}

@Override
protected void onDestroy() {
Expand Down

0 comments on commit 9facac3

Please sign in to comment.