- \r
- // Make download button effective\r
- Button downloadButton = (Button) getView().findViewById(R.id.fdDownloadBtn);\r
- downloadButton.setOnClickListener(this);\r
- }\r
- }\r
-\r
- @Override\r
- public View onCreateView(LayoutInflater inflater, ViewGroup container,\r
- Bundle savedInstanceState) {\r
- View view = null;\r
- view = inflater.inflate(mLayout, container, false);\r
- return view;\r
- }\r
-\r
- @Override\r
- public void onStart() {\r
- super.onStart();\r
- \r
- // Fill in required information about file displaying\r
- if(mIntent == null){\r
- mIntent = getActivity().getIntent();\r
- }\r
- \r
- // Fill in the details if the layout is not empty\r
- if(!mEmptyLayout){\r
- updateFileDetails();\r