Finish adjusting the code of PrintServiceSettingsFrament to the changes made
in the layout. Bug: 25645752 Change-Id: I54401075d4c604850287c7dd101cf4f4b4f21459
This commit is contained in:
@@ -168,7 +168,6 @@ public class PrintServiceSettingsFragment extends SettingsPreferenceFragment
|
||||
super.onViewCreated(view, savedInstanceState);
|
||||
initComponents();
|
||||
updateUiForArguments();
|
||||
getView().findViewById(R.id.list_container).setVisibility(View.GONE);
|
||||
getBackupListView().setVisibility(View.VISIBLE);
|
||||
}
|
||||
|
||||
@@ -199,7 +198,7 @@ public class PrintServiceSettingsFragment extends SettingsPreferenceFragment
|
||||
|
||||
private void updateEmptyView() {
|
||||
ViewGroup contentRoot = (ViewGroup) getListView().getParent();
|
||||
View emptyView = getEmptyView();
|
||||
View emptyView = getBackupListView().getEmptyView();
|
||||
if (!mToggleSwitch.isChecked()) {
|
||||
if (emptyView != null && emptyView.getId() != R.id.empty_print_state) {
|
||||
contentRoot.removeView(emptyView);
|
||||
|
Reference in New Issue
Block a user