question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Image-viewer isn't working for vertical images

See original GitHub issue

I’m using ImageLoaderCallback and calling imageviewer.showImage(Uri uri).

It’s working for all URLs except some. Like this one :

Code :

        bigImageView.setImageLoaderCallback(new ImageLoader.Callback() {
            @Override
            public void onCacheHit(int imageType, File image) {
            }

            @Override
            public void onCacheMiss(int imageType, File image) {

            }

            @Override
            public void onStart() {
                Helper.log("start : " + getClass().getName() + url_base);
            }

            @Override
            public void onProgress(int progress) {
                if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
                    progress_load_bing.setProgress(progress, true);
                } else {
                    progress_load_bing.setProgress(progress);
                }
            }

            @Override
            public void onFinish() {
                bigImageView.setVisibility(View.VISIBLE);
                loadingView.setVisibility(View.INVISIBLE);
                set_wall.show();
                show_info.show();

                try {
                    sheet = new InfoSheet(
                            title.split("©")[0],
                            title.split("©")[1],
                            view_link,
                            view_link);

                    if (!WallpaperSetter.this.isFinishing())
                        sheet.show(getSupportFragmentManager(), "info_shit");
                } catch (Exception ignored) {
                }
            }

            @Override
            public void onSuccess(File image) {
                imageFile = image;
            }

            @Override
            public void onFail(Exception error) {
                Toast.makeText(WallpaperSetter.this, "Error Loading Image", Toast.LENGTH_SHORT).show();
                error.printStackTrace();
            }
        });
        String bet = BingActivity.getNextImage(url_base, BingActivity.Res.getByOrder(index));
        Helper.log(bet);
        bigImageView.showImage(Uri.parse(bet));

PS: I couldn’t get the printing statements executed from onStart

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Piasycommented, Sep 17, 2019

I think maybe it’s because you change BIV’s visibility, in my test I didn’t do that.

If you need do such thing, please debug yourself, and PR is welcome if you trace down some bug in BIV.

0reactions
Piasycommented, Sep 17, 2019

Hmm, maybe you need more debug on it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot Rotate Picture in Windows Photo Viewer
Would appreciate someone offering a cogent explanation for the simple function of turning a picture on the screen from sideways to vertical.
Read more >
FIX: Microsoft Photos rotates RAW images in Windows 10/11
Rotating photographs in Windows Photo Viewer is as simple as pressing the arrow buttons on the bottom control bar.
Read more >
Looking for an image viewer program that supports vertical ...
Is there something that will let open a folder of images (.jpg) and scroll through them vertically? I.E. ...
Read more >
Why Your Photos Don't Always Appear Correctly Rotated
Digital cameras didn't bother rotating images automatically. So, even if you used a camera and held it vertically to take a photo in...
Read more >
Vertical Image loaded in as a horizontal one - Stack Overflow
I'm writing a simple application, which basicly loads some pictures and just shows them to the user. The problem is, when I initialize...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found