Follow preferences padding changes in framework.
Change-Id: Ia83237290da035e5ee7a2e92ef56fc02838aac56
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user