I have a problem when on Fragment
transitions.
I want set ActionBar
title to "Loading"
before switching fragment, code:
getSupportActionBar().setTitle("Loading");
FragmentManager fragmentManager = getSupportFragmentManager();
fragmentManager.popBackStackImmediate();
Title is setted only after the transition, that's the problem.
Update 1: The problem is update the actionbar before UI thread start fragment transition (heavy task).
PS. Sample problem if I want make two fast transitions (like, make a transition to a "loading fragment" then to the main fragment).