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;
}
Aggregations