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:
@@ -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
|
||||
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user