Fix Wave form IOException thread issue.

This commit is contained in:
Alan Evans 2020-06-02 07:38:15 -03:00
parent f7b150f2d2
commit 543f38c75d

View file

@ -112,7 +112,7 @@ public final class AudioWaveForm {
Util.runOnMain(() -> onSuccess.accept(fileInfo)); Util.runOnMain(() -> onSuccess.accept(fileInfo));
} catch (IOException e) { } catch (IOException e) {
Log.w(TAG, "Failed to create audio wave form for " + cacheKey, e); Log.w(TAG, "Failed to create audio wave form for " + cacheKey, e);
onFailure.accept(e); Util.runOnMain(() -> onFailure.accept(e));
} }
}); });
} }