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

Commit

Permalink
Fixed some bugs and added back button functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
markhaehnel committed Feb 4, 2016
1 parent 00ddb25 commit ffabbfe
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
Binary file modified app/app-release.apk
Binary file not shown.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
applicationId "de.markhaehnel.rbtv.rocketbeanstv"
minSdkVersion 17
targetSdkVersion 17
versionCode 7
versionName "2.3"
versionCode 8
versionName "2.4"
}
buildTypes {
release {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ public boolean onKeyDown(int keyCode, KeyEvent event) {
case KeyEvent.KEYCODE_DPAD_CENTER:
togglePlayState();
return true;
case KeyEvent.KEYCODE_BACK:
case KeyEvent.KEYCODE_HOME:
System.exit(0);
return true;
}
return false;
}
Expand Down Expand Up @@ -143,6 +147,7 @@ public boolean onInfo(MediaPlayer mp, int what, int extra) {
case MediaPlayer.MEDIA_INFO_VIDEO_RENDERING_START:
pb.startAnimation(fadeOut);
pb.setVisibility(View.INVISIBLE);

if (!showGetterIsRunning) new GetCurrentShow().execute();
break;
}
Expand Down Expand Up @@ -182,7 +187,7 @@ private void showMessage(int resourceId) {
ad.setNeutralButton("Okay", new AlertDialog.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
finish();
System.exit(0);
}
});
ad.create().show();
Expand Down Expand Up @@ -226,8 +231,8 @@ public void onAudioFocusChange(int focus) {
break;

case AudioManager.AUDIOFOCUS_LOSS:
emVideoView.stopPlayback();
am.unregisterMediaButtonEventReceiver(mbr);
System.exit(0);
break;

case AudioManager.AUDIOFOCUS_LOSS_TRANSIENT:
Expand Down

0 comments on commit ffabbfe

Please sign in to comment.