execute finish() on current thread

This commit is contained in:
tibbi 2016-04-16 14:40:10 +02:00
parent a6839372a7
commit d3e47f8133

View file

@ -270,13 +270,9 @@ public class PhotosActivity extends AppCompatActivity
@Override @Override
public void onScanCompleted(String path, Uri uri) { public void onScanCompleted(String path, Uri uri) {
runOnUiThread(new Runnable() { if (photos.isEmpty()) {
@Override finish();
public void run() { }
if (photos.isEmpty())
finish();
}
});
} }
@Override @Override