From 78ca788f11195a9443facf18c9a0841157c9c5f0 Mon Sep 17 00:00:00 2001 From: Trudu Laurent Date: Tue, 25 Jun 2024 17:39:22 +0200 Subject: [PATCH] Update GetPrinterStatusTask --- PrintWrapper/build.gradle | 4 ++-- .../java/com/zebra/printwrapper/GetPrinterStatusTask.java | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/PrintWrapper/build.gradle b/PrintWrapper/build.gradle index c969249..8bc6bdd 100644 --- a/PrintWrapper/build.gradle +++ b/PrintWrapper/build.gradle @@ -17,8 +17,8 @@ android { defaultConfig { minSdkVersion 25 targetSdkVersion 33 - versionCode 6 - versionName "1.5" + versionCode 7 + versionName "1.6" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" consumerProguardFiles "consumer-rules.pro" diff --git a/PrintWrapper/src/main/java/com/zebra/printwrapper/GetPrinterStatusTask.java b/PrintWrapper/src/main/java/com/zebra/printwrapper/GetPrinterStatusTask.java index 5dfb355..d3aca42 100644 --- a/PrintWrapper/src/main/java/com/zebra/printwrapper/GetPrinterStatusTask.java +++ b/PrintWrapper/src/main/java/com/zebra/printwrapper/GetPrinterStatusTask.java @@ -9,6 +9,8 @@ import com.zebra.sdk.printer.discovery.DiscoveredPrinter; public class GetPrinterStatusTask extends ExecutorTask{ + public PrinterStatus printerStatus = null; + @Override protected PrinterStatus doInBackground(DiscoveredPrinter... printerParams) { DiscoveredPrinter selectedPrinter = printerParams[0]; @@ -42,4 +44,10 @@ protected PrinterStatus doInBackground(DiscoveredPrinter... printerParams) { } return printerStatus; } + + @Override + protected void onPostExecute(PrinterStatus printerStatus) { + super.onPostExecute(printerStatus); + this.printerStatus = printerStatus; + } }