2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-30 13:47:41 +00:00

Remove redundant casts

This commit is contained in:
Nicolas Fella
2018-09-29 21:13:27 +02:00
parent 49df6ddba6
commit 427cad6239
2 changed files with 2 additions and 2 deletions

View File

@@ -49,7 +49,7 @@ public class MprisMediaNotificationReceiver extends BroadcastReceiver {
//Route these buttons to the media session, which will handle them
MediaSessionCompat mediaSession = MprisMediaSession.getMediaSession();
if (mediaSession == null) return;
mediaSession.getController().dispatchMediaButtonEvent((KeyEvent) intent.getParcelableExtra(Intent.EXTRA_KEY_EVENT));
mediaSession.getController().dispatchMediaButtonEvent(intent.getParcelableExtra(Intent.EXTRA_KEY_EVENT));
} else {
//Second case: buttons on the notification, which we created ourselves

View File

@@ -91,7 +91,7 @@ class SimpleSftpServer {
sshd.setFileSystemFactory(new AndroidFileSystemFactory(context));
sshd.setCommandFactory(new ScpCommandFactory());
sshd.setSubsystemFactories(Collections.singletonList((NamedFactory<Command>) new SftpSubsystem.Factory()));
sshd.setSubsystemFactories(Collections.singletonList(new SftpSubsystem.Factory()));
if (device.publicKey != null) {
keyAuth.deviceKey = device.publicKey;