Skip to content

Commit

Permalink
Bugfix for not capturing Super and Alt modifier keys on Samsung DEX.
Browse files Browse the repository at this point in the history
  • Loading branch information
iiordanov committed Dec 31, 2024
1 parent 846ff51 commit 6a1a860
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () -> {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 6a1a860

Please sign in to comment.