Sorted "no data" message visible instead of loading animation on profile search. On fragment setup first onCreateOptionsMenu() is called and onQueryTextSubmit() is called (I do not understand why that event happens). Loading animation is set to TRUE. After this fragment onCreate() is called and is setting up loading animation to false which basically exposes empty view message