Source:
<code>private void populateDirectoryList() { setContentView(R.layout.uploader_layout); mRadioBtnMoveFiles = (RadioButton) findViewById(R.id.uploader_radio_move); mRadioBtnCopyFiles = (RadioButton) findViewById(R.id.uploader_radio_copy); <START> mRadioBtnCopyFiles.setChecked(true); <END> ListView mListView = (ListView) findViewById(android.R.id.list); String current_dir = mParents.peek(); if(current_dir.equals("")){ getSupportActionBar().setTitle(getString(R.string.default_display_name_for_root_folder)); } else{ getSupportActionBar().setTitle(current_dir); } boolean notRoot = (mParents.size() > 1); ActionBar actionBar = getSupportActionBar(); actionBar.setDisplayHomeAsUpEnabled(notRoot); actionBar.setHomeButtonEnabled(notRoot); String full_path = generatePath(mParents); Log_OC.d(TAG, "Populating view with content of : " + full_path); mFile = getStorageManager().getFileByPath(full_path); if (mFile != null) { Vector<OCFile> files = getStorageManager().getFolderContent(mFile ); List<HashMap<String, OCFile>> data = new LinkedList<HashMap<String,OCFile>>(); for (OCFile f : files) { HashMap<String, OCFile> h = new HashMap<String, OCFile>(); h.put("dirname", f); data.add(h); } UploaderAdapter sa = new UploaderAdapter(this, data, R.layout.uploader_list_item_layout, new String[] {"dirname"}, new int[] {R.id.filename}, getStorageManager(), getAccount()); mListView.setAdapter(sa); Button btnChooseFolder = (Button) findViewById(R.id.uploader_choose_folder); btnChooseFolder.setOnClickListener(this); Button btnNewFolder = (Button) findViewById(R.id.uploader_cancel); btnNewFolder.setOnClickListener(this); mListView.setOnItemClickListener(this); } }</code><technical_language>override user decision user de-selects this radio button rotate phone</technical_language>

Target:
private void populateDirectoryList() { ListView mListView = (ListView) findViewById(android.R.id.list); String current_dir = mParents.peek(); if(current_dir.equals("")){ getSupportActionBar().setTitle(getString(R.string.default_display_name_for_root_folder)); } else{ getSupportActionBar().setTitle(current_dir); } boolean notRoot = (mParents.size() > 1); ActionBar actionBar = getSupportActionBar(); actionBar.setDisplayHomeAsUpEnabled(notRoot); actionBar.setHomeButtonEnabled(notRoot); String full_path = generatePath(mParents); Log_OC.d(TAG, "Populating view with content of : " + full_path); mFile = getStorageManager().getFileByPath(full_path); if (mFile != null) { Vector<OCFile> files = getStorageManager().getFolderContent(mFile ); List<HashMap<String, OCFile>> data = new LinkedList<HashMap<String,OCFile>>(); for (OCFile f : files) { HashMap<String, OCFile> h = new HashMap<String, OCFile>(); h.put("dirname", f); data.add(h); } UploaderAdapter sa = new UploaderAdapter(this, data, R.layout.uploader_list_item_layout, new String[] {"dirname"}, new int[] {R.id.filename}, getStorageManager(), getAccount()); mListView.setAdapter(sa); Button btnChooseFolder = (Button) findViewById(R.id.uploader_choose_folder); btnChooseFolder.setOnClickListener(this); Button btnNewFolder = (Button) findViewById(R.id.uploader_cancel); btnNewFolder.setOnClickListener(this); mListView.setOnItemClickListener(this); } }