From de6e882a4584a477145381d9f03eab2cb853d39c Mon Sep 17 00:00:00 2001 From: Catfriend1 Date: Sat, 15 Jun 2019 11:38:28 +0200 Subject: [PATCH] Don't open keyboard on "Share to Syncthing" imported from: https://github.com/syncthing/syncthing-android/pull/1328 --- .../nutomic/syncthingandroid/activities/ShareActivity.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/com/nutomic/syncthingandroid/activities/ShareActivity.java b/app/src/main/java/com/nutomic/syncthingandroid/activities/ShareActivity.java index fa9e2686..690b9183 100644 --- a/app/src/main/java/com/nutomic/syncthingandroid/activities/ShareActivity.java +++ b/app/src/main/java/com/nutomic/syncthingandroid/activities/ShareActivity.java @@ -44,6 +44,8 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import static android.view.WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN; + /** * Shares incoming files to syncthing folders. *

@@ -120,6 +122,8 @@ public class ShareActivity extends SyncthingActivity mConfig = new ConfigRouter(ShareActivity.this); setContentView(R.layout.activity_share); + getWindow().setSoftInputMode(SOFT_INPUT_STATE_ALWAYS_HIDDEN); + Button mShareButton = findViewById(R.id.share_button); Button mCancelButton = findViewById(R.id.cancel_button); Button browseButton = findViewById(R.id.browse_button);