mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-03 01:39:18 +02:00
hide keyboard call
This commit is contained in:
parent
f6a2c5de29
commit
36238693e4
2 changed files with 6 additions and 1 deletions
|
@ -1,2 +1 @@
|
|||
* hide keyboard after catalog info loading
|
||||
* start FBReader in new task
|
||||
|
|
|
@ -26,6 +26,7 @@ import android.content.Intent;
|
|||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import android.view.inputmethod.InputMethodManager;
|
||||
import android.widget.Button;
|
||||
import android.widget.TextView;
|
||||
|
||||
|
@ -64,6 +65,11 @@ public class AddCustomCatalogActivity extends Activity {
|
|||
setupButton(
|
||||
R.id.add_custom_catalog_ok_button, "ok", new View.OnClickListener() {
|
||||
public void onClick(View view) {
|
||||
final InputMethodManager imm =
|
||||
(InputMethodManager)getSystemService(INPUT_METHOD_SERVICE);
|
||||
imm.hideSoftInputFromWindow(findViewById(R.id.add_custom_catalog_url).getWindowToken(), 0);
|
||||
imm.hideSoftInputFromWindow(findViewById(R.id.add_custom_catalog_title).getWindowToken(), 0);
|
||||
imm.hideSoftInputFromWindow(findViewById(R.id.add_custom_catalog_summary).getWindowToken(), 0);
|
||||
onOkButton();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue