diff --git a/app/src/main/java/com/simplemobiletools/gallery/activities/PhotosActivity.java b/app/src/main/java/com/simplemobiletools/gallery/activities/PhotosActivity.java index ef69a823a..d3942e91a 100644 --- a/app/src/main/java/com/simplemobiletools/gallery/activities/PhotosActivity.java +++ b/app/src/main/java/com/simplemobiletools/gallery/activities/PhotosActivity.java @@ -270,13 +270,9 @@ public class PhotosActivity extends AppCompatActivity @Override public void onScanCompleted(String path, Uri uri) { - runOnUiThread(new Runnable() { - @Override - public void run() { - if (photos.isEmpty()) - finish(); - } - }); + if (photos.isEmpty()) { + finish(); + } } @Override