execute finish() on current thread
This commit is contained in:
parent
a6839372a7
commit
d3e47f8133
1 changed files with 3 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue