Closed AkkiBuoy closed 3 years ago
Disposable loadImageDisposable = loadImage(filePath) .subscribeOn(Schedulers.io()) .observeOn(AndroidSchedulers.mainThread()) .doOnSubscribe(subscriber -> loadingDialog.show()) .doFinally(() -> loadingDialog.dismiss()) .subscribe(processedBitmap -> changeMainBitmap(processedBitmap, false), e -> showToast(R.string.iamutkarshtiwari_github_io_ananas_load_error));
In EditImageActivity the subscribe method is not called on first run of the app. As a result changeMainBitmap() not executing and black screen appears.
This was fixed in this commit https://github.com/iamutkarshtiwari/Ananas/pull/94
Disposable loadImageDisposable = loadImage(filePath) .subscribeOn(Schedulers.io()) .observeOn(AndroidSchedulers.mainThread()) .doOnSubscribe(subscriber -> loadingDialog.show()) .doFinally(() -> loadingDialog.dismiss()) .subscribe(processedBitmap -> changeMainBitmap(processedBitmap, false), e -> showToast(R.string.iamutkarshtiwari_github_io_ananas_load_error));
In EditImageActivity the subscribe method is not called on first run of the app. As a result changeMainBitmap() not executing and black screen appears.