diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2013-02-23 12:25:54 +0100 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2013-02-23 12:25:54 +0100 |
commit | 970f3f8c740fe2f4e9ae4b44a832efbe163cad05 (patch) | |
tree | e19e732a3df0655ac7495672e7f43177f2a3e1c9 /src/de/danoeh | |
parent | 64591fa050f5db5b5255027c757466528d4953db (diff) | |
download | AntennaPod-970f3f8c740fe2f4e9ae4b44a832efbe163cad05.zip |
Added status indicator to audioplayer
Diffstat (limited to 'src/de/danoeh')
-rw-r--r-- | src/de/danoeh/antennapod/activity/AudioplayerActivity.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/de/danoeh/antennapod/activity/AudioplayerActivity.java b/src/de/danoeh/antennapod/activity/AudioplayerActivity.java index 8c094b34d..48b09b92b 100644 --- a/src/de/danoeh/antennapod/activity/AudioplayerActivity.java +++ b/src/de/danoeh/antennapod/activity/AudioplayerActivity.java @@ -15,6 +15,7 @@ import android.widget.ListView; import android.widget.TextView; import com.actionbarsherlock.app.SherlockListFragment; +import com.actionbarsherlock.view.Window; import de.danoeh.antennapod.AppConfig; import de.danoeh.antennapod.R; @@ -68,6 +69,7 @@ public class AudioplayerActivity extends MediaplayerActivity { @Override protected void onCreate(Bundle savedInstanceState) { + requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); super.onCreate(savedInstanceState); detachedFragments = new Fragment[NUM_CONTENT_FRAGMENTS]; } @@ -79,12 +81,14 @@ public class AudioplayerActivity extends MediaplayerActivity { @Override protected void postStatusMsg(int resId) { - + setSupportProgressBarIndeterminateVisibility(resId == R.string.player_preparing_msg + || resId == R.string.player_seeking_msg + || resId == R.string.player_buffering_msg); } @Override protected void clearStatusMsg() { - + setSupportProgressBarIndeterminateVisibility(false); } /** |