Search in sources :

Example 1 with SyncedFolderParcelable

use of com.owncloud.android.ui.dialog.parcel.SyncedFolderParcelable in project android by nextcloud.

the class SyncedFolderPreferencesDialogFragment method newInstance.

public static SyncedFolderPreferencesDialogFragment newInstance(SyncedFolderDisplayItem syncedFolder, int section) {
    if (syncedFolder == null) {
        throw new IllegalArgumentException("SyncedFolder is mandatory but NULL!");
    }
    Bundle args = new Bundle();
    args.putParcelable(SYNCED_FOLDER_PARCELABLE, new SyncedFolderParcelable(syncedFolder, section));
    SyncedFolderPreferencesDialogFragment dialogFragment = new SyncedFolderPreferencesDialogFragment();
    dialogFragment.setArguments(args);
    dialogFragment.setStyle(STYLE_NORMAL, R.style.Theme_ownCloud_Dialog);
    return dialogFragment;
}
Also used : SyncedFolderParcelable(com.owncloud.android.ui.dialog.parcel.SyncedFolderParcelable) Bundle(android.os.Bundle)

Aggregations

Bundle (android.os.Bundle)1 SyncedFolderParcelable (com.owncloud.android.ui.dialog.parcel.SyncedFolderParcelable)1