Skip to content

Commit

Permalink
bugfix: retry button works after connection error while creating images
Browse files Browse the repository at this point in the history
  • Loading branch information
DevEmperor committed Mar 4, 2024
1 parent e40913a commit 06e837c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public class CreateImageActivity extends AppCompatActivity {
Image image;
Bitmap bitmap;
ExecutorService thread;
Timer timer = new Timer();
Timer timer;

@Override
protected void onCreate(Bundle savedInstanceState) {
Expand Down Expand Up @@ -139,6 +139,7 @@ private void createAndDownloadImage() {

thread = Executors.newSingleThreadExecutor();
thread.execute(() -> {
timer = new Timer();
try {
CreateImageRequest cir = CreateImageRequest.builder()
.responseFormat("url")
Expand Down

0 comments on commit 06e837c

Please sign in to comment.