private View getLayout(LayoutInflater inflater, ViewGroup container) {
private View getLayout(LayoutInflater inflater, ViewGroup container) {
mConfig = StorageChooser.getsConfig();
mLayout = inflater.inflate(R.layout.storage_list, container, false);
initListView(getContext(), mLayout, mConfig.isShowMemoryBar());
if (mConfig.getDialogTitle() != null) {
TextView dialogTitle = (TextView) mLayout.findViewById(R.id.dialog_title);
dialogTitle.setText(mConfig.getDialogTitle());
}
return mLayout;
}
...
// just add the internal storage and avoid adding emulated henceforth
if (mConfig.getInternalStorageText() != null) {
storages.setStorageTitle(mConfig.getInternalStorageText());
} else {
storages.setStorageTitle(INTERNAL_STORAGE_TITLE);
}