1
0
Fork 0
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:
Nikolay Pultsin 2011-02-28 16:02:14 +03:00
parent f6a2c5de29
commit 36238693e4
2 changed files with 6 additions and 1 deletions

View file

@ -1,2 +1 @@
* hide keyboard after catalog info loading
* start FBReader in new task * start FBReader in new task

View file

@ -26,6 +26,7 @@ import android.content.Intent;
import android.net.Uri; import android.net.Uri;
import android.os.Bundle; import android.os.Bundle;
import android.view.View; import android.view.View;
import android.view.inputmethod.InputMethodManager;
import android.widget.Button; import android.widget.Button;
import android.widget.TextView; import android.widget.TextView;
@ -64,6 +65,11 @@ public class AddCustomCatalogActivity extends Activity {
setupButton( setupButton(
R.id.add_custom_catalog_ok_button, "ok", new View.OnClickListener() { R.id.add_custom_catalog_ok_button, "ok", new View.OnClickListener() {
public void onClick(View view) { 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(); onOkButton();
} }
} }