Search in sources :

Example 1 with SmbConnectDialog

use of com.amaze.filemanager.ui.dialogs.SmbConnectDialog in project AmazeFileManager by TeamAmaze.

the class MainActivity method showSMBDialog.

public void showSMBDialog(String name, String path, boolean edit) {
    if (path.length() > 0 && name.length() == 0) {
        int i = dataUtils.containsServer(new String[] { name, path });
        if (i != -1)
            name = dataUtils.getServers().get(i)[0];
    }
    SmbConnectDialog smbConnectDialog = new SmbConnectDialog();
    Bundle bundle = new Bundle();
    bundle.putString("name", name);
    bundle.putString("path", path);
    bundle.putBoolean("edit", edit);
    smbConnectDialog.setArguments(bundle);
    smbConnectDialog.show(getFragmentManager(), "smbdailog");
}
Also used : SmbConnectDialog(com.amaze.filemanager.ui.dialogs.SmbConnectDialog) Bundle(android.os.Bundle)

Aggregations

Bundle (android.os.Bundle)1 SmbConnectDialog (com.amaze.filemanager.ui.dialogs.SmbConnectDialog)1