Search in sources :

Example 1 with AddGroup

use of com.keepassdroid.database.edit.AddGroup in project KeePassDX by Kunzisoft.

the class GroupActivity method approveEditGroup.

@Override
public void approveEditGroup(Bundle bundle) {
    String GroupName = bundle.getString(GroupEditDialogFragment.KEY_NAME);
    int GroupIconID = bundle.getInt(GroupEditDialogFragment.KEY_ICON_ID);
    switch(editGroupDialogAction) {
        case CREATION:
            // If edit group creation
            Handler handler = new Handler();
            AddGroup task = new AddGroup(this, App.getDB(), GroupName, GroupIconID, mCurrentGroup, new AfterAddNode(handler), false);
            ProgressTask pt = new ProgressTask(this, task, R.string.saving_database);
            pt.run();
            break;
        case UPDATE:
            // TODO UpdateGroup
            break;
    }
    editGroupDialogAction = EditGroupDialogAction.NONE;
}
Also used : AddGroup(com.keepassdroid.database.edit.AddGroup) ProgressTask(com.keepassdroid.tasks.ProgressTask) Handler(android.os.Handler)

Aggregations

Handler (android.os.Handler)1 AddGroup (com.keepassdroid.database.edit.AddGroup)1 ProgressTask (com.keepassdroid.tasks.ProgressTask)1