[network/kdeconnect-android] src/main/java/org/kde/kdeconnect/plugins/mousepad: Revert "Now for real fix "Show keyboard initially""

David Leppla-Weber <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 0b1af55d3159f8f3300d6f347ffd010849ca8491 by David Leppla-Weber, on behalf of David Leppla-Weber.
Committed on 31/07/2026 at 14:35.
Pushed by albertvaka into branch 'master'.

Revert "Now for real fix "Show keyboard initially""

This reverts commit 7299d55a1e4aa68e60394c3a839b2de7d7ee1d1d.

M  +5    -7    src/main/java/org/kde/kdeconnect/plugins/mousepad/MousePadActivity.java

https://invent.kde.org/network/kdeconnect-android/-/commit/0b1af55d3159f8f3300d6f347ffd010849ca8491

diff --git a/src/main/java/org/kde/kdeconnect/plugins/mousepad/MousePadActivity.java b/src/main/java/org/kde/kdeconnect/plugins/mousepad/MousePadActivity.java
index 861438031..4512b634d 100644
--- a/src/main/java/org/kde/kdeconnect/plugins/mousepad/MousePadActivity.java
+++ b/src/main/java/org/kde/kdeconnect/plugins/mousepad/MousePadActivity.java
@@ -173,6 +173,8 @@ public class MousePadActivity
         prefs = PreferenceManager.getDefaultSharedPreferences(this);
         prefs.registerOnSharedPreferenceChangeListener(this);
 
+        applyPrefs();
+
         //Technically xdpi and ydpi should be handled separately,
         //but since ydpi is usually almost equal to xdpi, only xdpi is used for the multiplier.
         displayDpiMultiplier = StandardDpi / getResources().getDisplayMetrics().xdpi;
@@ -190,8 +192,6 @@ public class MousePadActivity
                 getWindow().getDecorView().setSystemUiVisibility(fullscreenType);
             }
         });
-
-        applyPrefs();
     }
 
     @Override
@@ -563,11 +563,9 @@ public class MousePadActivity
     }
 
     private void showKeyboard() {
-        keyListenerView.post(() -> {
-            InputMethodManager imm = ContextCompat.getSystemService(this, InputMethodManager.class);
-            keyListenerView.requestFocus();
-            imm.showSoftInput(keyListenerView, 0);
-        });
+        InputMethodManager imm = ContextCompat.getSystemService(this, InputMethodManager.class);
+        keyListenerView.requestFocus();
+        imm.showSoftInput(keyListenerView, 0);
     }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.