fixed headline for share file fragment

This commit is contained in:
Andy Scherzinger 2016-03-21 20:04:15 +01:00 committed by David A. Velasco
parent c96be51151
commit c32ce5b9d5

View file

@ -201,8 +201,8 @@ public class ShareFileFragment extends Fragment
}
}
// Name
TextView filename = (TextView) view.findViewById(R.id.shareFileName);
filename.setText(mFile.getFileName());
TextView fileNameHeader = (TextView) view.findViewById(R.id.shareFileName);
fileNameHeader.setText(getResources().getString(R.string.share_file, mFile.getFileName()));
// Size
TextView size = (TextView) view.findViewById(R.id.shareFileSize);
if (mFile.isFolder()) {
@ -512,8 +512,6 @@ public class ShareFileFragment extends Fragment
super.onActivityCreated(savedInstanceState);
Log_OC.d(TAG, "onActivityCreated");
getActivity().setTitle(R.string.share_dialog_title);
// Load known capabilities of the server from DB
refreshCapabilitiesFromDB();