diff --git a/src/main/java/com/owncloud/android/ui/fragment/OCFileListFragment.java b/src/main/java/com/owncloud/android/ui/fragment/OCFileListFragment.java index 957823df33..e1c54c1aed 100644 --- a/src/main/java/com/owncloud/android/ui/fragment/OCFileListFragment.java +++ b/src/main/java/com/owncloud/android/ui/fragment/OCFileListFragment.java @@ -1442,8 +1442,13 @@ public class OCFileListFragment extends ExtendedListFragment implements OCFileLi } } - private void setTitle(@StringRes int title) { - ((FileDisplayActivity) getActivity()).getSupportActionBar().setTitle(title); + private void setTitle(@StringRes final int title) { + getActivity().runOnUiThread(new Runnable() { + @Override + public void run() { + ((FileDisplayActivity) getActivity()).getSupportActionBar().setTitle(title); + } + }); } @Override