summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/AddBookmarkPage.java
diff options
context:
space:
mode:
authorBjorn Bringert <bringert@android.com>2010-10-12 10:53:12 +0100
committerBjorn Bringert <bringert@android.com>2010-10-12 10:55:28 +0100
commitb1402a5c3e1617867c58d32d1fe9782cf6de423f (patch)
tree5fd13ed8e0c139f9ab3d315c81e8e249a244c2a9 /src/com/android/browser/AddBookmarkPage.java
parentf0ef6a989031f461761b1c453318135e0af4dde1 (diff)
downloadpackages_apps_Browser-b1402a5c3e1617867c58d32d1fe9782cf6de423f.zip
packages_apps_Browser-b1402a5c3e1617867c58d32d1fe9782cf6de423f.tar.gz
packages_apps_Browser-b1402a5c3e1617867c58d32d1fe9782cf6de423f.tar.bz2
Remove some unnecessary use of hidden APIs
Change-Id: Ie72947017550d759994e34d7db8087d1f9e6d63a
Diffstat (limited to 'src/com/android/browser/AddBookmarkPage.java')
-rw-r--r--src/com/android/browser/AddBookmarkPage.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/com/android/browser/AddBookmarkPage.java b/src/com/android/browser/AddBookmarkPage.java
index 593c247..707126f 100644
--- a/src/com/android/browser/AddBookmarkPage.java
+++ b/src/com/android/browser/AddBookmarkPage.java
@@ -102,6 +102,10 @@ public class AddBookmarkPage extends Activity
private Handler mHandler;
+ private InputMethodManager getInputMethodManager() {
+ return (InputMethodManager) getSystemService(INPUT_METHOD_SERVICE);
+ }
+
@Override
public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
if (v == mFolderNamer) {
@@ -149,7 +153,7 @@ public class AddBookmarkPage extends Activity
mFolderNamer.setText(R.string.new_folder);
mFolderNamer.requestFocus();
mAddNewFolder.setVisibility(View.GONE);
- InputMethodManager.getInstance(this).showSoftInput(mFolderNamer,
+ getInputMethodManager().showSoftInput(mFolderNamer,
InputMethodManager.SHOW_IMPLICIT);
}
}
@@ -161,7 +165,7 @@ public class AddBookmarkPage extends Activity
descendInto(name, id);
mFolderNamer.setVisibility(View.GONE);
mAddNewFolder.setVisibility(View.VISIBLE);
- InputMethodManager.getInstance(this).hideSoftInputFromWindow(
+ getInputMethodManager().hideSoftInputFromWindow(
mFolderNamer.getWindowToken(), 0);
}
}
@@ -447,7 +451,7 @@ public class AddBookmarkPage extends Activity
if (mFolderNamer.getVisibility() == View.VISIBLE) {
mFolderNamer.setVisibility(View.GONE);
mAddNewFolder.setVisibility(View.VISIBLE);
- InputMethodManager.getInstance(this).hideSoftInputFromWindow(
+ getInputMethodManager().hideSoftInputFromWindow(
mFolderNamer.getWindowToken(), 0);
} else {
int size = mPaths.size();