Follow preferences padding changes in framework.

Change-Id: Ia83237290da035e5ee7a2e92ef56fc02838aac56
This commit is contained in:
Jeff Sharkey
2011-08-16 16:14:49 -07:00
parent 96bc051377
commit dcf8ba9eb2
4 changed files with 3 additions and 69 deletions

View File

@@ -81,7 +81,6 @@ public class UserDictionarySettings extends ListFragment implements DialogCreata
/** The word being edited in the dialog (null means the user is adding a word). */
private String mDialogEditingWord;
private View mView;
private Cursor mCursor;
protected String mLocale;
@@ -96,13 +95,6 @@ public class UserDictionarySettings extends ListFragment implements DialogCreata
super.onCreate(savedInstanceState);
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
mView = inflater.inflate(R.layout.custom_preference_list_fragment, container, false);
return mView;
}
@Override
public void onActivityCreated(Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
@@ -126,7 +118,7 @@ public class UserDictionarySettings extends ListFragment implements DialogCreata
mLocale = locale;
mCursor = createCursor(locale);
TextView emptyView = (TextView)mView.findViewById(R.id.empty);
TextView emptyView = (TextView) getView().findViewById(android.R.id.empty);
emptyView.setText(R.string.user_dict_settings_empty_text);
final ListView listView = getListView();