diff options
Diffstat (limited to 'core/src/play/java')
-rw-r--r-- | core/src/play/java/de/danoeh/antennapod/core/cast/CastButtonVisibilityManager.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/play/java/de/danoeh/antennapod/core/cast/CastButtonVisibilityManager.java b/core/src/play/java/de/danoeh/antennapod/core/cast/CastButtonVisibilityManager.java index 527a652e3..8d0e40116 100644 --- a/core/src/play/java/de/danoeh/antennapod/core/cast/CastButtonVisibilityManager.java +++ b/core/src/play/java/de/danoeh/antennapod/core/cast/CastButtonVisibilityManager.java @@ -3,7 +3,7 @@ package de.danoeh.antennapod.core.cast; import android.util.Log; import android.view.Menu; import android.view.MenuItem; -import androidx.core.view.MenuItemCompat; + import de.danoeh.antennapod.core.R; public class CastButtonVisibilityManager { @@ -115,6 +115,6 @@ public class CastButtonVisibilityManager { Log.e(TAG, "setShowAsAction(), but cast button not inflated"); return; } - MenuItemCompat.setShowAsAction(item, connected ? MenuItem.SHOW_AS_ACTION_ALWAYS : showAsAction); + item.setShowAsAction(connected ? MenuItem.SHOW_AS_ACTION_ALWAYS : showAsAction); } } |