mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-31 22:25:08 +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
|
//Route these buttons to the media session, which will handle them
|
||||||
MediaSessionCompat mediaSession = MprisMediaSession.getMediaSession();
|
MediaSessionCompat mediaSession = MprisMediaSession.getMediaSession();
|
||||||
if (mediaSession == null) return;
|
if (mediaSession == null) return;
|
||||||
mediaSession.getController().dispatchMediaButtonEvent((KeyEvent) intent.getParcelableExtra(Intent.EXTRA_KEY_EVENT));
|
mediaSession.getController().dispatchMediaButtonEvent(intent.getParcelableExtra(Intent.EXTRA_KEY_EVENT));
|
||||||
} else {
|
} else {
|
||||||
//Second case: buttons on the notification, which we created ourselves
|
//Second case: buttons on the notification, which we created ourselves
|
||||||
|
|
||||||
|
@@ -91,7 +91,7 @@ class SimpleSftpServer {
|
|||||||
|
|
||||||
sshd.setFileSystemFactory(new AndroidFileSystemFactory(context));
|
sshd.setFileSystemFactory(new AndroidFileSystemFactory(context));
|
||||||
sshd.setCommandFactory(new ScpCommandFactory());
|
sshd.setCommandFactory(new ScpCommandFactory());
|
||||||
sshd.setSubsystemFactories(Collections.singletonList((NamedFactory<Command>) new SftpSubsystem.Factory()));
|
sshd.setSubsystemFactories(Collections.singletonList(new SftpSubsystem.Factory()));
|
||||||
|
|
||||||
if (device.publicKey != null) {
|
if (device.publicKey != null) {
|
||||||
keyAuth.deviceKey = device.publicKey;
|
keyAuth.deviceKey = device.publicKey;
|
||||||
|
Reference in New Issue
Block a user