1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2025-01-07 10:42:07 +00:00

Don't open keyboard on "Share to Syncthing"

imported from: https://github.com/syncthing/syncthing-android/pull/1328
This commit is contained in:
Catfriend1 2019-06-15 11:38:28 +02:00
parent e0fa1dae0f
commit de6e882a45

View file

@ -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.
* <p>
@ -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);