Skip to content

Commit

Permalink
Update GetPrinterStatusTask
Browse files Browse the repository at this point in the history
  • Loading branch information
ltrudu committed Jun 25, 2024
1 parent 0711eef commit 78ca788
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PrintWrapper/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
import com.zebra.sdk.printer.discovery.DiscoveredPrinter;

public class GetPrinterStatusTask extends ExecutorTask<DiscoveredPrinter, Boolean, PrinterStatus>{
public PrinterStatus printerStatus = null;

@Override
protected PrinterStatus doInBackground(DiscoveredPrinter... printerParams) {
DiscoveredPrinter selectedPrinter = printerParams[0];
Expand Down Expand Up @@ -42,4 +44,10 @@ protected PrinterStatus doInBackground(DiscoveredPrinter... printerParams) {
}
return printerStatus;
}

@Override
protected void onPostExecute(PrinterStatus printerStatus) {
super.onPostExecute(printerStatus);
this.printerStatus = printerStatus;
}
}

0 comments on commit 78ca788

Please sign in to comment.