Skip to content

How can I stop all pending BitmapAjaxCallback #117

Description

@Brblol

I want to be able to stop all images that are loading.

I tried the following but it has no effect

for (int i = 0; i < cbList.size(); i++) {

        BitmapAjaxCallback cb = cbList.get(i);
        try {
            if (cb != null) {
                cbList.remove(i);
                System.out.println("aborting " + cb.getUrl());
                cb.abort();;
            }
        } catch (Exception e) {
            e.printStackTrace();
        }

    }

Looking at the code it seems like BitmapAjaxCallback.clearTasks() would do the job but it is not exposed. it is a protected method.

How can I stop all images loading?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions