diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2024-02-20 21:15:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-20 21:15:55 +0100 |
commit | 3b2e7420cd8d97f662ba46fec5944edde7c8b3eb (patch) | |
tree | 7895ed9b8de624195f489fb493ebf5ee305bbf97 /core/src | |
parent | 0d29e44de5ac97f2285aca241e4f4290c26ea0f9 (diff) | |
download | AntennaPod-3b2e7420cd8d97f662ba46fec5944edde7c8b3eb.zip |
Remove some deprecated methods (#6932)
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/receiver/MediaButtonReceiver.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/receiver/MediaButtonReceiver.java b/core/src/main/java/de/danoeh/antennapod/core/receiver/MediaButtonReceiver.java index 161af58e1..837cb692e 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/receiver/MediaButtonReceiver.java +++ b/core/src/main/java/de/danoeh/antennapod/core/receiver/MediaButtonReceiver.java @@ -31,7 +31,7 @@ public class MediaButtonReceiver extends BroadcastReceiver { if (intent == null || intent.getExtras() == null) { return; } - KeyEvent event = (KeyEvent) intent.getExtras().get(Intent.EXTRA_KEY_EVENT); + KeyEvent event = intent.getParcelableExtra(Intent.EXTRA_KEY_EVENT); if (event != null && event.getAction() == KeyEvent.ACTION_DOWN && event.getRepeatCount() == 0) { ClientConfigurator.initialize(context); Intent serviceIntent = new Intent(PLAYBACK_SERVICE_INTENT); |