Follow preferences padding changes in framework.
Change-Id: Ia83237290da035e5ee7a2e92ef56fc02838aac56
This commit is contained in:
@@ -114,7 +114,6 @@ public class WifiSettings extends SettingsPreferenceFragment
|
||||
|
||||
private WifiDialog mDialog;
|
||||
|
||||
private View mView;
|
||||
private TextView mEmptyView;
|
||||
|
||||
/* Used in Wifi Setup context */
|
||||
@@ -162,13 +161,6 @@ public class WifiSettings extends SettingsPreferenceFragment
|
||||
mInXlSetupWizard = (activity instanceof WifiSettingsForSetupWizardXL);
|
||||
}
|
||||
|
||||
@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) {
|
||||
// We don't call super.onActivityCreated() here, since it assumes we already set up
|
||||
@@ -227,7 +219,7 @@ public class WifiSettings extends SettingsPreferenceFragment
|
||||
mWifiEnabler = new WifiEnabler(activity, actionBarSwitch);
|
||||
}
|
||||
|
||||
mEmptyView = (TextView) mView.findViewById(R.id.empty);
|
||||
mEmptyView = (TextView) getView().findViewById(android.R.id.empty);
|
||||
getListView().setEmptyView(mEmptyView);
|
||||
|
||||
registerForContextMenu(getListView());
|
||||
|
Reference in New Issue
Block a user