iamutkarshtiwari / Ananas

An easy image editor integration for your Android apps.
MIT License
252 stars 113 forks source link

Image not loading on First run of the app #93

Closed AkkiBuoy closed 3 years ago

AkkiBuoy commented 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.

iamutkarshtiwari commented 3 years ago

This was fixed in this commit https://github.com/iamutkarshtiwari/Ananas/pull/94