Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refreshanje list viewa #1

Open
Igll91 opened this issue Feb 18, 2014 · 1 comment
Open

Refreshanje list viewa #1

Igll91 opened this issue Feb 18, 2014 · 1 comment
Assignees
Labels

Comments

@Igll91
Copy link
Owner

Igll91 commented Feb 18, 2014

Otkriti u čemu je caka.

Pokretanje samo jednog Async taska radi. Međutim, ako se mobitel ne rotira, u metodi onPostExecute se lijepo sve izvrši i screen se iscrta.

Ako u trenutku dohvata podataka zarotiram mobitel, nakon onPostExecute screen se ne iscrta... ostane prikaz loading... ako se dalje zarotira mobitel, sve se uspostavi...

trenutna quick fix ideja je da probam postInvalidate.

@Igll91 Igll91 added the bug label Feb 18, 2014
@Igll91 Igll91 self-assigned this Feb 18, 2014
@Igll91
Copy link
Owner Author

Igll91 commented Feb 18, 2014

@OverRide
protected void onPostExecute(final LzsRestResponse lzs_feed) {

        // testing
        Log.i(Val.TESTING_STATE_TAG, "onPostExecute()");

        values.clear();
        values.addAll(lzs_feed.getPosts());
        isDownloadRssFeedRunning = false;
        cleanScreen(); // SREDITI NE REFRESHA DOBRO ! 

        adapter.notifyDataSetChanged();
    }

ne žikam ...
Sve prođe ali posao ne napravi...
U listu se dodaju Postovi... pozove se clean screen ..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant