Merge "Declare no print services if 0 print services are enabled." into nyc-dev am: b852d0138a

am: d8e82000d6

* commit 'd8e82000d626eb6c79d01fe342ae4a90c7c8ff17':
  Declare no print services if 0 print services are enabled.

Change-Id: Iee652ef70298418e4a4d773cff7a70700053ba9f
This commit is contained in:
Philip P. Moltmann
2016-05-18 19:53:45 +00:00
committed by android-build-merger

View File

@@ -319,7 +319,7 @@ public final class SelectPrinterActivity extends Activity implements
}
TextView titleView = (TextView) findViewById(R.id.title);
View progressBar = findViewById(R.id.progress_bar);
if (mEnabledPrintServices.size() > 0) {
if (mEnabledPrintServices.size() == 0) {
titleView.setText(R.string.print_no_print_services);
progressBar.setVisibility(View.GONE);
} else if (adapter.getUnfilteredCount() <= 0) {