Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyteate committed Mar 18, 2016
1 parent a45c4af commit e2f8582
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions Gfycat/src/main/java/net/danlew/gfycat/ui/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -211,16 +211,18 @@ protected void onStop() {

@Override
public void onPause() {
super.onPause();
if (mMediaPlayer != null && mMediaPlayerPrepared)
mMediaPlayer.pause();
super.onPause();
if (mMediaPlayer != null && mMediaPlayerPrepared) {
mMediaPlayer.pause();
}
}

@Override
public void onResume() {
super.onResume();
if (mMediaPlayer != null && mMediaPlayerPrepared)
mMediaPlayer.start();
super.onResume();
if (mMediaPlayer != null && mMediaPlayerPrepared) {
mMediaPlayer.start();
}
}

@Override
Expand Down

0 comments on commit e2f8582

Please sign in to comment.