ericaddison / APT_miniProject_Android

The Android App for Connexus
0 stars 0 forks source link

Double Loading on Nearby Streams #24

Closed ericaddison closed 6 years ago

ericaddison commented 6 years ago

Maybe the same problem we saw before?

psigourney commented 6 years ago

Are you getting images loading twice the first time visiting Nearby, or after other actions?

Is this on the current Master branch?

    @Override
    protected void onStart() {
        super.onStart();
        adapter.clear();
    }

Might need to add the adapter.clear() to the top of the handleNewLocation function instead of onStart. So it the location updates dynamically (but onStart isn't called), the image queue is cleared before it's rebuilt.

edit: added pull request.