mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Printer: Shutdown executor on activty destroy
This commit is contained in:
committed by
daniele
parent
744d17b45f
commit
99aec7bd48
+6
@@ -112,6 +112,12 @@ public class SendToPrinterActivity extends AbstractGBActivity {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onDestroy() {
|
||||
super.onDestroy();
|
||||
executor.shutdown();
|
||||
}
|
||||
|
||||
private void processUriAsync(Uri uri) {
|
||||
executor.execute(() -> {
|
||||
cleanUpPrintPictureCache();
|
||||
|
||||
Reference in New Issue
Block a user