Added run on ui thread
This commit is contained in:
parent
9c8aa3300c
commit
fe65fc3ce8
1 changed files with 9 additions and 1 deletions
|
@ -258,6 +258,14 @@ public class DashFavoritesFragment extends DashBaseFragment implements Favourite
|
|||
|
||||
@Override
|
||||
public void updateFavourites() {
|
||||
setupFavorites();
|
||||
if (getActivity() == null) {
|
||||
return;
|
||||
}
|
||||
getActivity().runOnUiThread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
setupFavorites();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue