Make printers for a print service not react to press.

We show a list of printers for the a print service in the
print service settings activity. This list is there to
inform the user of which printers are available and
optionally offers adding a printer affordance. The printer
list items do nothing so they should not react to press
and create a false impression they do.

bug:10983508

Change-Id: I43b19ebb0acf6662c489826c192fd6daf8ad103d
This commit is contained in:
Svetoslav
2013-10-04 17:52:36 -07:00
parent 4a4a1b8b96
commit 9379d93555

View File

@@ -639,6 +639,11 @@ public class PrintServiceSettingsFragment extends SettingsPreferenceFragment
return convertView;
}
@Override
public boolean isEnabled(int position) {
return false;
}
@Override
public Loader<List<PrinterInfo>> onCreateLoader(int id, Bundle args) {
if (id == LOADER_ID_PRINTERS_LOADER) {