diff options
author | Jean Chalard <jchalard@google.com> | 2011-12-02 14:56:39 +0900 |
---|---|---|
committer | Jean Chalard <jchalard@google.com> | 2011-12-07 11:48:19 +0900 |
commit | e17eefab87794b30bf969ba132910e3a3ba981ac (patch) | |
tree | 7a6dccb666a98a8a49f23e844e2ad1480443002c /src/com/android/settings/inputmethod/UserDictionaryAddWordActivity.java | |
parent | bd44e9d399f25bc9136d9121d4c5b65daa7eeecc (diff) | |
download | packages_apps_settings-e17eefab87794b30bf969ba132910e3a3ba981ac.zip packages_apps_settings-e17eefab87794b30bf969ba132910e3a3ba981ac.tar.gz packages_apps_settings-e17eefab87794b30bf969ba132910e3a3ba981ac.tar.bz2 |
Add the new add_word interface.
This is step 2. The interface is not functional yet.
Bug: 5306641
Change-Id: Idc8d07b883a17067f777c86d83994fb040b37c59
Diffstat (limited to 'src/com/android/settings/inputmethod/UserDictionaryAddWordActivity.java')
-rw-r--r-- | src/com/android/settings/inputmethod/UserDictionaryAddWordActivity.java | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/com/android/settings/inputmethod/UserDictionaryAddWordActivity.java b/src/com/android/settings/inputmethod/UserDictionaryAddWordActivity.java index 35278a7..c570983 100644 --- a/src/com/android/settings/inputmethod/UserDictionaryAddWordActivity.java +++ b/src/com/android/settings/inputmethod/UserDictionaryAddWordActivity.java @@ -19,12 +19,23 @@ package com.android.settings.inputmethod; import com.android.settings.R; import android.app.Activity; +import android.content.Intent; import android.os.Bundle; +import android.widget.EditText; public class UserDictionaryAddWordActivity extends Activity { + private static final String EXTRA_WORD = "word"; + + private EditText mEditText; + @Override public void onCreate(final Bundle savedInstanceState) { super.onCreate(savedInstanceState); - setContentView(R.layout.dialog_edittext); + setContentView(R.layout.user_dictionary_add_word); + final Intent intent = getIntent(); + final String word = intent.getStringExtra(EXTRA_WORD); + mEditText = (EditText)findViewById(R.id.user_dictionary_add_word_text); + mEditText.setText(word); + mEditText.setSelection(word.length()); } } |