Factor some code

Bug: 6026080
Change-Id: I38475a95b1d421162099390244dbda09658346f5
This commit is contained in:
Jean Chalard
2012-05-08 19:11:49 +09:00
parent be07e49a92
commit be3f0faf52
4 changed files with 98 additions and 50 deletions

View File

@@ -36,6 +36,8 @@ public class UserDictionaryAddWordFragment extends Fragment {
private static final int OPTIONS_MENU_DELETE = Menu.FIRST;
private UserDictionaryAddWordContents mContents;
@Override
public void onActivityCreated(Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
@@ -44,7 +46,9 @@ public class UserDictionaryAddWordFragment extends Fragment {
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedState) {
return inflater.inflate(R.layout.user_dictionary_add_word_fullscreen, null);
final View view = inflater.inflate(R.layout.user_dictionary_add_word_fullscreen, null);
mContents = new UserDictionaryAddWordContents(view, getArguments());
return view;
}
@Override