diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2014-11-09 19:03:08 +0100 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2014-11-09 19:03:08 +0100 |
commit | c9630897daad687a2bf02794caf9fa571bddb82e (patch) | |
tree | 87ca835e14018bf03a29594921613551a1d61642 /app/src/main/java/de | |
parent | a8ae853cfd1e65de2aea8bc11e3373bd90e72f76 (diff) | |
download | AntennaPod-c9630897daad687a2bf02794caf9fa571bddb82e.zip |
Bugfix: Actionbar in PreferenceActivity was not displayed
Diffstat (limited to 'app/src/main/java/de')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/activity/PreferenceActivity.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/activity/PreferenceActivity.java b/app/src/main/java/de/danoeh/antennapod/activity/PreferenceActivity.java index 1454a2eff..c40489374 100644 --- a/app/src/main/java/de/danoeh/antennapod/activity/PreferenceActivity.java +++ b/app/src/main/java/de/danoeh/antennapod/activity/PreferenceActivity.java @@ -1,13 +1,14 @@ package de.danoeh.antennapod.activity; import android.annotation.TargetApi; -import android.app.ActionBar; import android.app.Activity; import android.content.Intent; import android.os.Build; import android.os.Bundle; import android.preference.Preference; import android.preference.PreferenceFragment; +import android.support.v7.app.ActionBar; +import android.support.v7.app.ActionBarActivity; import android.view.Menu; import android.view.MenuItem; import android.view.ViewGroup; @@ -21,7 +22,7 @@ import de.danoeh.antennapod.preferences.PreferenceController; * PreferenceActivity for API 11+. In order to change the behavior of the preference UI, see * PreferenceController. */ -public class PreferenceActivity extends Activity { +public class PreferenceActivity extends ActionBarActivity { private PreferenceController preferenceController; private MainFragment prefFragment; @@ -48,7 +49,7 @@ public class PreferenceActivity extends Activity { super.onCreate(savedInstanceState); instance = this; - ActionBar ab = getActionBar(); + ActionBar ab = getSupportActionBar(); if (ab != null) { ab.setDisplayHomeAsUpEnabled(true); } |