From 6a1a860e0004595ff5353b2c00c7ae808239a271 Mon Sep 17 00:00:00 2001 From: Iordan Iordanov Date: Tue, 31 Dec 2024 16:13:59 -0500 Subject: [PATCH] Bugfix for not capturing Super and Alt modifier keys on Samsung DEX. --- .../main/java/com/iiordanov/bVNC/RemoteCanvasActivity.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bVNC/src/main/java/com/iiordanov/bVNC/RemoteCanvasActivity.java b/bVNC/src/main/java/com/iiordanov/bVNC/RemoteCanvasActivity.java index 40e99ffa..b43e3ede 100644 --- a/bVNC/src/main/java/com/iiordanov/bVNC/RemoteCanvasActivity.java +++ b/bVNC/src/main/java/com/iiordanov/bVNC/RemoteCanvasActivity.java @@ -310,7 +310,7 @@ public void onCreate(Bundle icicle) { try { setModes(); } catch (NullPointerException e) { - Log.d(TAG, "Ignored Exception while running setModes"); + Log.d(TAG, "Ignored NullPointerException while running setModes: " + Log.getStackTraceString(e)); } }; Runnable hideKeyboardAndExtraKeys = () -> { @@ -747,8 +747,8 @@ void setModes() { try { COLORMODEL cm = COLORMODEL.valueOf(connection.getColorModel()); remoteConnection.setColorModel(cm); - } catch (IllegalArgumentException e) { - e.printStackTrace(); + } catch (NullPointerException | IllegalArgumentException e) { + Log.w(TAG, "Could not set color model"); } canvas.setFocusableInTouchMode(true); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {