Skip to content

Commit

Permalink
default icon
Browse files Browse the repository at this point in the history
  • Loading branch information
nheid committed Feb 12, 2011
1 parent c734107 commit 0a31b10
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
Binary file modified res/drawable-hdpi/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified res/drawable-ldpi/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified res/drawable-mdpi/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 10 additions & 2 deletions src/com/unitedcoders/android/gpodroid/activity/Player.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,18 @@ protected void onCreate(Bundle savedInstanceState) {
forward.setOnClickListener(this);
backward.setOnClickListener(this);

buttonStop.setBackgroundResource(R.drawable.play);

buttonStop.setOnClickListener(new OnClickListener() {

@Override
public void onClick(View v) {

if (pce == null) {
Intent intent = new Intent(getApplicationContext(), PodcastManager.class);
startActivity(intent);
}

if (mp.isPlaying()) {
mp.pause();
buttonStop.setBackgroundResource(R.drawable.play);
Expand Down Expand Up @@ -161,9 +169,9 @@ public void onClick(View view) {


if (view == backward) {
seek(-15000);
seek(- mp.getDuration()/50);
} else if (view == forward) {
seek(+15000);
seek(mp.getDuration()/50);
}


Expand Down

0 comments on commit 0a31b10

Please sign in to comment.