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:
@@ -639,6 +639,11 @@ public class PrintServiceSettingsFragment extends SettingsPreferenceFragment
|
|||||||
return convertView;
|
return convertView;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isEnabled(int position) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Loader<List<PrinterInfo>> onCreateLoader(int id, Bundle args) {
|
public Loader<List<PrinterInfo>> onCreateLoader(int id, Bundle args) {
|
||||||
if (id == LOADER_ID_PRINTERS_LOADER) {
|
if (id == LOADER_ID_PRINTERS_LOADER) {
|
||||||
|
Reference in New Issue
Block a user