From 2b0bbccc6feb6a9f36e88228175e00c811211048 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Katzer?= Date: Mon, 1 Aug 2016 17:03:30 +0200 Subject: [PATCH] DiscoverySession -> session --- src/android/ui/SelectPrinterActivity.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/android/ui/SelectPrinterActivity.java b/src/android/ui/SelectPrinterActivity.java index e92fc1d..3470b3a 100644 --- a/src/android/ui/SelectPrinterActivity.java +++ b/src/android/ui/SelectPrinterActivity.java @@ -71,7 +71,7 @@ public final class SelectPrinterActivity extends Activity { /** * Session for printer discovering within the network. */ - private PrinterDiscoverySession discoverySession; + private PrinterDiscoverySession session; /** * Called when the activity is starting. @@ -88,8 +88,8 @@ public final class SelectPrinterActivity extends Activity { setContentView(Meta.getResId( this, "layout", "select_printer_activity")); - discoverySession = new PrintManager(this).createPrinterDiscoverySession(); - listView = (ListView) findViewById(android.R.id.list); + session = new PrintManager(this).createPrinterDiscoverySession(); + listView = (ListView) findViewById(android.R.id.list); initListView(); startPrinterDiscovery(); @@ -101,7 +101,7 @@ public final class SelectPrinterActivity extends Activity { */ @Override protected void onDestroy() { - discoverySession.destroy(); + session.destroy(); super.onDestroy(); } @@ -162,7 +162,7 @@ public final class SelectPrinterActivity extends Activity { if (pm.getInstalledPrintServices().isEmpty()) return; - discoverySession.startPrinterDiscovery(); + session.startPrinterDiscovery(); } /** @@ -178,7 +178,7 @@ public final class SelectPrinterActivity extends Activity { listView.setEmptyView(emptyView); } - if (discoverySession.isPrinterDiscoveryStarted()) { + if (session.isPrinterDiscoveryStarted()) { titleView.setText("Searching for printers"); progressBar.setVisibility(View.VISIBLE); } else { @@ -204,7 +204,7 @@ public final class SelectPrinterActivity extends Activity { * printers. */ ListViewAdapter() { - discoverySession.setOnPrintersChangeListener(new OnPrintersChangeListener() { + session.setOnPrintersChangeListener(new OnPrintersChangeListener() { @Override public void onPrintersChanged (List printerInfos) { printers.addAll(printerInfos);