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