diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2014-10-25 11:24:27 +0200 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2014-10-25 11:24:27 +0200 |
commit | 375575a54ed50c5e5cb3b20641108eede68b7b3d (patch) | |
tree | 6ecdef89e8c189075ea0bf3430db01c0a9eb7099 /app/src | |
parent | dcc7c9d25d5540f0caa6e10b2bb69a249e340455 (diff) | |
download | AntennaPod-375575a54ed50c5e5cb3b20641108eede68b7b3d.zip |
Fixed NPE in AudioplayerActivity
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/activity/AudioplayerActivity.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/activity/AudioplayerActivity.java b/app/src/main/java/de/danoeh/antennapod/activity/AudioplayerActivity.java index 8a8fa2438..033d650ce 100644 --- a/app/src/main/java/de/danoeh/antennapod/activity/AudioplayerActivity.java +++ b/app/src/main/java/de/danoeh/antennapod/activity/AudioplayerActivity.java @@ -32,6 +32,7 @@ import de.danoeh.antennapod.R; import de.danoeh.antennapod.adapter.ChapterListAdapter; import de.danoeh.antennapod.adapter.NavListAdapter; import de.danoeh.antennapod.core.asynctask.PicassoProvider; +import de.danoeh.antennapod.core.util.id3reader.ChapterReader; import de.danoeh.antennapod.dialog.VariableSpeedDialog; import de.danoeh.antennapod.core.feed.Chapter; import de.danoeh.antennapod.core.feed.EventDistributor; @@ -429,12 +430,12 @@ public class AudioplayerActivity extends MediaplayerActivity implements ItemDesc TypedArray typedArray = obtainStyledAttributes(new int[]{R.attr.nav_drawer_toggle}); drawerToggle = new ActionBarDrawerToggle(this, drawerLayout, typedArray.getResourceId(0, 0), R.string.drawer_open, R.string.drawer_close) { - String currentTitle = getSupportActionBar().getTitle().toString(); + CharSequence currentTitle = getSupportActionBar().getTitle(); @Override public void onDrawerOpened(View drawerView) { super.onDrawerOpened(drawerView); - currentTitle = getSupportActionBar().getTitle().toString(); + currentTitle = getSupportActionBar().getTitle(); getSupportActionBar().setTitle(R.string.app_name); supportInvalidateOptionsMenu(); } |