mohaxspb / Odnako

Odnako
https://play.google.com/store/apps/details?id=ru.kuchanov.odnako
5 stars 0 forks source link

Work with DB in AsyncTask. #31

Closed mohaxspb closed 9 years ago

mohaxspb commented 9 years ago

We test

Looper.myLooper() == Looper.getMainLooper()

on onResume() and in Service and we have true here. But in AsyncTask we have false, so, as I understand, we will have no lags (i.e. onReceiving arts in frag) while working with DB;

mohaxspb commented 9 years ago

Done in commit 86aac48e9a;

Also in docs there is info about it. Service really works in UI thread;