Search in sources :

Example 1 with CreateFolderDialogFragment

use of com.owncloud.android.ui.dialog.CreateFolderDialogFragment in project android by owncloud.

the class ReceiveExternalFilesActivity method onOptionsItemSelected.

@Override
public boolean onOptionsItemSelected(MenuItem item) {
    boolean retval = true;
    switch(item.getItemId()) {
        case R.id.action_create_dir:
            CreateFolderDialogFragment dialog = CreateFolderDialogFragment.newInstance(mFile);
            dialog.show(getSupportFragmentManager(), CreateFolderDialogFragment.CREATE_FOLDER_FRAGMENT);
            break;
        case android.R.id.home:
            if ((mParents.size() > 1)) {
                onBackPressed();
            }
            break;
        default:
            retval = super.onOptionsItemSelected(item);
    }
    return retval;
}
Also used : CreateFolderDialogFragment(com.owncloud.android.ui.dialog.CreateFolderDialogFragment)

Aggregations

CreateFolderDialogFragment (com.owncloud.android.ui.dialog.CreateFolderDialogFragment)1