Add SPDX header

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2024-04-09 12:20:07 +02:00
parent 7c055f28ca
commit ce8b5cdb2e
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B
40 changed files with 257 additions and 791 deletions

View file

@ -4,7 +4,7 @@
* SPDX-FileCopyrightText: 2019-2020 Tobias Kaminsky <tobias@kaminsky.me> * SPDX-FileCopyrightText: 2019-2020 Tobias Kaminsky <tobias@kaminsky.me>
* SPDX-FileCopyrightText: 2019 Chris Narkiewicz <hello@ezaquarii.com> * SPDX-FileCopyrightText: 2019 Chris Narkiewicz <hello@ezaquarii.com>
* SPDX-FileCopyrightText: 2015 ownCloud Inc. * SPDX-FileCopyrightText: 2015 ownCloud Inc.
* SPDX-FileCopyrightText: 2016 Juan Carlos González Cabrero <malkomich@gmail.com * SPDX-FileCopyrightText: 2016 Juan Carlos González Cabrero <malkomich@gmail.com>
* SPDX-FileCopyrightText: 2015 David A. Velasco <dvelasco@solidgear.es> * SPDX-FileCopyrightText: 2015 David A. Velasco <dvelasco@solidgear.es>
* SPDX-License-Identifier: GPL-2.0-only AND AGPL-3.0-or-later * SPDX-License-Identifier: GPL-2.0-only AND AGPL-3.0-or-later
*/ */

View file

@ -1,49 +0,0 @@
/**
* ownCloud Android client application
*
* Copyright (C) 2014 ownCloud Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.owncloud.android.ui;
import android.content.Context;
import android.preference.CheckBoxPreference;
import android.util.AttributeSet;
import android.view.View;
import android.widget.TextView;
public class CheckBoxPreferenceWithLongTitle extends CheckBoxPreference {
public CheckBoxPreferenceWithLongTitle(Context context) {
super(context);
}
public CheckBoxPreferenceWithLongTitle(Context context, AttributeSet attrs) {
super(context, attrs);
}
public CheckBoxPreferenceWithLongTitle(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
}
@Override
protected void onBindView(View view) {
super.onBindView(view);
TextView titleView = (TextView) view.findViewById(android.R.id.title);
titleView.setSingleLine(false);
titleView.setMaxLines(3);
titleView.setEllipsize(null);
}
}

View file

@ -1,79 +0,0 @@
/**
* ownCloud Android client application
*
* @author David A. Velasco
* Copyright (C) 2012 Bartek Przybylski
* Copyright (C) 2012-2015 ownCloud Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.owncloud.android.ui;
import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;
import android.widget.ListView;
import com.owncloud.android.lib.common.utils.Log_OC;
/**
* ListView allowing to specify the position of an item that should be centered in the visible area, if possible.
*
* The cleanest way I found to overcome the problem due to getHeight() returns 0 until the view is really drawn.
*/
public class ExtendedListView extends ListView {
private static final String TAG = ExtendedListView.class.getSimpleName();
private int mPositionToSetAndCenter;
public ExtendedListView(Context context) {
super(context);
}
public ExtendedListView(Context context, AttributeSet attrs) {
super(context, attrs);
}
public ExtendedListView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
}
/**
* {@inheritDoc}
*
*
*/
@Override
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
if (mPositionToSetAndCenter > 0) {
Log_OC.v(TAG, "Centering around position " + mPositionToSetAndCenter);
this.setSelectionFromTop(mPositionToSetAndCenter, getHeight() / 2);
mPositionToSetAndCenter = 0;
}
}
/**
* Public method to set the position of the item that should be centered in the visible area of the view.
*
* The position is saved here and checked in onDraw().
*
* @param position Position (in the list of items) of the item to center in the visible area.
*/
public void setAndCenterSelection(int position) {
mPositionToSetAndCenter = position;
}
}

View file

@ -1,21 +1,10 @@
/** /*
* ownCloud Android client application * Nextcloud - Android Client
* *
* Copyright (C) 2015 ownCloud Inc. * SPDX-FileCopyrightText: 2014-2018 Tobias Kaminsky <tobias@kaminsky.me>
* * SPDX-FileCopyrightText: 2017 Andy Scherzinger <info@andy-scherzinger.de>
* This program is free software: you can redistribute it and/or modify * SPDX-License-Identifier: AGPL-3.0-or-later
* it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package com.owncloud.android.ui; package com.owncloud.android.ui;
import android.content.Context; import android.content.Context;

View file

@ -1,21 +1,9 @@
/** /*
* ownCloud Android client application * Nextcloud - Android Client
* *
* Copyright (C) 2015 ownCloud Inc. * SPDX-FileCopyrightText: 2014 Tobias Kaminsky <tobias@kaminsky.me>
* * SPDX-License-Identifier: AGPL-3.0-or-later
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package com.owncloud.android.ui; package com.owncloud.android.ui;
import android.content.Context; import android.content.Context;

View file

@ -1,23 +1,14 @@
/** /*
* ownCloud Android client application * Nextcloud - Android Client
*
* @author David A. Velasco
* Copyright (C) 2015 ownCloud Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* *
* SPDX-FileCopyrightText: 2021 Chris Narkiewicz <hello@ezaquarii.com>
* SPDX-FileCopyrightText: 2018-2020 Tobias Kaminsky <tobias@kaminsky.me>
* SPDX-FileCopyrightText: 2017-2018 Andy Scherzinger <info@andy-scherzinger.de>
* SPDX-FileCopyrightText: 2015 ownCloud Inc.
* SPDX-FileCopyrightText: 2013 María Asensio Valverde <masensio@solidgear.es>
* SPDX-FileCopyrightText: 2012-2013 David A. Velasco <dvelasco@solidgear.es>
* SPDX-License-Identifier: GPL-2.0-only AND AGPL-3.0-or-later
*/ */
package com.owncloud.android.ui.activity; package com.owncloud.android.ui.activity;
import android.content.Context; import android.content.Context;
@ -52,14 +43,10 @@ import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.DialogFragment; import androidx.fragment.app.DialogFragment;
/** /**
* Activity reporting errors occurred when local files uploaded to an ownCloud account with an app * Activity reporting errors occurred when local files uploaded to an Nextcloud account with an app
* in version under 1.3.16 where being copied to the ownCloud local folder. * in version under 1.3.16 where being copied to the ownCloud local folder.
* * Allows the user move the files to the Nextcloud local folder. let them unlinked to the remote files.
* Allows the user move the files to the ownCloud local folder. let them unlinked to the remote
* files.
*
* Shown when the error notification summarizing the list of errors is clicked by the user. * Shown when the error notification summarizing the list of errors is clicked by the user.
*/ */
public class ErrorsWhileCopyingHandlerActivity extends AppCompatActivity implements OnClickListener { public class ErrorsWhileCopyingHandlerActivity extends AppCompatActivity implements OnClickListener {

View file

@ -1,31 +1,16 @@
/* /*
* ownCloud Android client application * Nextcloud - Android Client
* *
* @author Bartek Przybylski * SPDX-FileCopyrightText: 2023 TSI-mc
* @author David A. Velasco * SPDX-FileCopyrightText: 2023 Archontis E. Kostis <arxontisk02@gmail.com>
* @author Andy Scherzinger * SPDX-FileCopyrightText: 2019 Chris Narkiewicz <hello@ezaquarii.com>
* @author Chris Narkiewicz * SPDX-FileCopyrightText: 2018-2022 Tobias Kaminsky <tobias@kaminsky.me>
* @author TSI-mc * SPDX-FileCopyrightText: 2018-2020 Andy Scherzinger <info@andy-scherzinger.de>
* @author Archontis E. Kostis * SPDX-FileCopyrightText: 2016 ownCloud Inc.
* Copyright (C) 2011 Bartek Przybylski * SPDX-FileCopyrightText: 2012-2013 David A. Velasco <dvelasco@solidgear.es>
* Copyright (C) 2016 ownCloud Inc. * SPDX-FileCopyrightText: 2011 Bartosz Przybylski <bart.p.pl@gmail.com>
* Copyright (C) 2018 Andy Scherzinger * SPDX-License-Identifier: GPL-2.0-only AND AGPL-3.0-or-later
* Copyright (C) 2019 Chris Narkiewicz <hello@ezaquarii.com>
* Copyright (C) 2023 TSI-mc
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package com.owncloud.android.ui.activity; package com.owncloud.android.ui.activity;
import android.accounts.AuthenticatorException; import android.accounts.AuthenticatorException;
@ -170,7 +155,7 @@ import static com.owncloud.android.datamodel.OCFile.PATH_SEPARATOR;
import static com.owncloud.android.utils.PermissionUtil.PERMISSION_CHOICE_DIALOG_TAG; import static com.owncloud.android.utils.PermissionUtil.PERMISSION_CHOICE_DIALOG_TAG;
/** /**
* Displays, what files the user has available in his ownCloud. This is the main view. * Displays, what files the user has available in his Nextcloud. This is the main view.
*/ */
public class FileDisplayActivity extends FileActivity public class FileDisplayActivity extends FileActivity
implements FileFragment.ContainerActivity, implements FileFragment.ContainerActivity,

View file

@ -1,24 +0,0 @@
/**
* ownCloud Android client application
*
* Copyright (C) 2015 ownCloud Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
package com.owncloud.android.ui.activity;
public abstract class HookActivity extends FileActivity {
}

View file

@ -1,26 +1,13 @@
/* /*
* ownCloud Android client application * Nextcloud - Android Client
* *
* @author Andy Scherzinger * SPDX-FileCopyrightText: 2024 Alper Ozturk <alper_ozturk@proton.me>
* @author Chris Narkiewicz <hello@ezaquarii.com> * SPDX-FileCopyrightText: 2020 Chris Narkiewicz <hello@ezaquarii.com>
* @author Chawki Chouib <chouibc@gmail.com> * SPDX-FileCopyrightText: 2020 Chawki Chouib <chouibc@gmail.com>
* Copyright (C) 2016 ownCloud Inc. * SPDX-FileCopyrightText: 2019 Tobias Kaminsky <tobias@kaminsky.me>
* Copyright (C) 2020 Chris Narkiewicz <hello@ezaquarii.com> * SPDX-FileCopyrightText: 2016-2018 Andy Scherzinger <info@andy-scherzinger.de>
* Copyright (C) 2020 Chawki Chouib <chouibc@gmail.com> * SPDX-License-Identifier: GPL-2.0-only AND AGPL-3.0-or-later
* <p/>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
* <p/>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p/>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package com.owncloud.android.ui.activity; package com.owncloud.android.ui.activity;
import android.accounts.Account; import android.accounts.Account;

View file

@ -1,24 +1,11 @@
/*
/** * Nextcloud - Android Client
* ownCloud Android client application
*
* @author David A. Velasco
* Copyright (C) 2015 ownCloud Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* *
* SPDX-FileCopyrightText: 2018 Tobias Kaminsky <tobias@kaminsky.me>
* SPDX-FileCopyrightText: 2015 ownCloud Inc.
* SPDX-FileCopyrightText: 2014 Jose Antonio Barros Ramos <jabarros@solidgear.es>
* SPDX-License-Identifier: GPL-2.0-only AND AGPL-3.0-or-later
*/ */
package com.owncloud.android.ui.activity; package com.owncloud.android.ui.activity;
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout; import androidx.swiperefreshlayout.widget.SwipeRefreshLayout;
@ -26,6 +13,4 @@ import androidx.swiperefreshlayout.widget.SwipeRefreshLayout;
public interface OnEnforceableRefreshListener extends SwipeRefreshLayout.OnRefreshListener { public interface OnEnforceableRefreshListener extends SwipeRefreshLayout.OnRefreshListener {
void onRefresh(boolean enforced); void onRefresh(boolean enforced);
} }

View file

@ -1,28 +1,17 @@
/* /*
* ownCloud Android client application * Nextcloud - Android Client
* *
* @author Bartek Przybylski * SPDX-FileCopyrightText: 2023 TSI-mc
* @author María Asensio Valverde * SPDX-FileCopyrightText: 2016-2023 Tobias Kaminsky <tobias@kaminsky.me>
* @author Juan Carlos González Cabrero * SPDX-FileCopyrightText: 2019 Chris Narkiewicz <hello@ezaquarii.com>
* @author David A. Velasco * SPDX-FileCopyrightText: 2016-2018 Andy Scherzinger <info@andy-scherzinger.de>
* @author Chris Narkiewicz * SPDX-FileCopyrightText: 2016 ownCloud Inc.
* Copyright (C) 2012 Bartek Przybylski * SPDX-FileCopyrightText: 2016 David A. Velasco <dvelasco@solidgear.es>
* Copyright (C) 2016 ownCloud Inc. * SPDX-FileCopyrightText: 2016 Juan Carlos González Cabrero <malkomich@gmail.com>
* Copyright (C) 2019 Chris Narkiewicz <hello@ezaquarii.com> * SPDX-FileCopyrightText: 2013 María Asensio Valverde <masensio@solidgear.es>
* * SPDX-FileCopyrightText: 2011-2012 Bartosz Przybylski <bart.p.pl@gmail.com>
* This program is free software: you can redistribute it and/or modify * SPDX-License-Identifier: GPL-2.0-only AND AGPL-3.0-or-later
* it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package com.owncloud.android.ui.activity; package com.owncloud.android.ui.activity;
import android.accounts.Account; import android.accounts.Account;
@ -126,11 +115,12 @@ import androidx.recyclerview.widget.LinearLayoutManager;
import static com.owncloud.android.utils.DisplayUtils.openSortingOrderDialogFragment; import static com.owncloud.android.utils.DisplayUtils.openSortingOrderDialogFragment;
/** /**
* This can be used to upload things to an ownCloud instance. * This can be used to upload things to an Nextcloud instance.
*/ */
public class ReceiveExternalFilesActivity extends FileActivity public class ReceiveExternalFilesActivity extends FileActivity
implements View.OnClickListener, CopyAndUploadContentUrisTask.OnCopyTmpFilesTaskListener, implements View.OnClickListener, CopyAndUploadContentUrisTask.OnCopyTmpFilesTaskListener,
SortingOrderDialogFragment.OnSortingOrderListener, Injectable, AccountChooserInterface, ReceiveExternalFilesAdapter.OnItemClickListener { SortingOrderDialogFragment.OnSortingOrderListener, Injectable, AccountChooserInterface,
ReceiveExternalFilesAdapter.OnItemClickListener {
private static final String TAG = ReceiveExternalFilesActivity.class.getSimpleName(); private static final String TAG = ReceiveExternalFilesActivity.class.getSimpleName();

View file

@ -8,7 +8,7 @@
* SPDX-FileCopyrightText: 2019 Chris Narkiewicz <hello@ezaquarii.com> * SPDX-FileCopyrightText: 2019 Chris Narkiewicz <hello@ezaquarii.com>
* SPDX-FileCopyrightText: 2015-2017 Andy Scherzinger <info@andy-scherzinger.de> * SPDX-FileCopyrightText: 2015-2017 Andy Scherzinger <info@andy-scherzinger.de>
* SPDX-FileCopyrightText: 2016 ownCloud Inc. * SPDX-FileCopyrightText: 2016 ownCloud Inc.
* SPDX-FileCopyrightText: 2014 jabarros <jabarros@solidgear.es> * SPDX-FileCopyrightText: 2014 Jose Antonio Barros Ramos <jabarros@solidgear.es>
* SPDX-FileCopyrightText: 2013 María Asensio Valverde <masensio@solidgear.es> * SPDX-FileCopyrightText: 2013 María Asensio Valverde <masensio@solidgear.es>
* SPDX-FileCopyrightText: 2011-2015 Bartosz Przybylski <bart.p.pl@gmail.com> * SPDX-FileCopyrightText: 2011-2015 Bartosz Przybylski <bart.p.pl@gmail.com>
* SPDX-License-Identifier: GPL-2.0-only AND AGPL-3.0-or-later * SPDX-License-Identifier: GPL-2.0-only AND AGPL-3.0-or-later

View file

@ -1,24 +1,15 @@
/* /*
* ownCloud Android client application * Nextcloud - Android Client
* *
* @author María Asensio Valverde * SPDX-FileCopyrightText: 2018-2022 Tobias Kaminsky <tobias@kaminsky.me>
* @author David A. Velasco * SPDX-FileCopyrightText: 2019 Chris Narkiewicz <hello@ezaquarii.com>
* @author Juan Carlos González Cabrero * SPDX-FileCopyrightText: 2017 Andy Scherzinger <info@andy-scherzinger.de>
* Copyright (C) 2015 ownCloud Inc. * SPDX-FileCopyrightText: 2016 ownCloud Inc.
* * SPDX-FileCopyrightText: 2016 Juan Carlos González Cabrero <malkomich@gmail.com>
* This program is free software: you can redistribute it and/or modify * SPDX-FileCopyrightText: 2015 David A. Velasco <dvelasco@solidgear.es>
* it under the terms of the GNU General Public License version 2, * SPDX-FileCopyrightText: 2015 María Asensio Valverde <masensio@solidgear.es>
* as published by the Free Software Foundation. * SPDX-License-Identifier: GPL-2.0-only AND AGPL-3.0-or-later
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package com.owncloud.android.ui.activity; package com.owncloud.android.ui.activity;
import android.app.Activity; import android.app.Activity;

View file

@ -1,23 +1,16 @@
/* /*
* ownCloud Android client application * Nextcloud - Android Client
*
* @author David A. Velasco
* Copyright (C) 2015 ownCloud Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* *
* SPDX-FileCopyrightText: 2022 Álvaro Brey <alvaro@alvarobrey.com>
* SPDX-FileCopyrightText: 2020-2022 Tobias Kaminsky <tobias@kaminsky.me>
* SPDX-FileCopyrightText: 2020 Joris Bodin <joris.bodin@infomaniak.com>
* SPDX-FileCopyrightText: 2019 Chris Narkiewicz <hello@ezaquarii.com>
* SPDX-FileCopyrightText: 2018 Andy Scherzinger <info@andy-scherzinger.de>
* SPDX-FileCopyrightText: 2015 ownCloud Inc.
* SPDX-FileCopyrightText: 2015 María Asensio Valverde <masensio@solidgear.es>
* SPDX-FileCopyrightText: 2012 David A. Velasco <dvelasco@solidgear.es>
* SPDX-License-Identifier: GPL-2.0-only AND AGPL-3.0-or-later
*/ */
package com.owncloud.android.ui.activity; package com.owncloud.android.ui.activity;
import android.accounts.Account; import android.accounts.Account;
@ -74,7 +67,7 @@ import androidx.fragment.app.FragmentTransaction;
import static com.owncloud.android.ui.activity.FileActivity.EXTRA_USER; import static com.owncloud.android.ui.activity.FileActivity.EXTRA_USER;
/** /**
* Displays local files and let the user choose what of them wants to upload to the current ownCloud account. * Displays local files and let the user choose what of them wants to upload to the current Nextcloud account.
*/ */
public class UploadFilesActivity extends DrawerActivity implements LocalFileListFragment.ContainerActivity, public class UploadFilesActivity extends DrawerActivity implements LocalFileListFragment.ContainerActivity,
OnClickListener, ConfirmationDialogFragmentListener, SortingOrderDialogFragment.OnSortingOrderListener, OnClickListener, ConfirmationDialogFragmentListener, SortingOrderDialogFragment.OnSortingOrderListener,

View file

@ -1,22 +1,12 @@
/** /*
* ownCloud Android client application * Nextcloud - Android Client
*
* @author María Asensio Valverde
* @author David A. Velasco
* Copyright (C) 2015 ownCloud Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* *
* SPDX-FileCopyrightText: 2020 Stefan Niedermann <info@niedermann.it>
* SPDX-FileCopyrightText: 2018 Andy Scherzinger <info@andy-scherzinger.de>
* SPDX-FileCopyrightText: 2015 ownCloud Inc.
* SPDX-FileCopyrightText: 2015 María Asensio Valverde <masensio@solidgear.es>
* SPDX-FileCopyrightText: 2014 David A. Velasco <dvelasco@solidgear.es>
* SPDX-License-Identifier: GPL-2.0-only AND AGPL-3.0-or-later
*/ */
package com.owncloud.android.ui.adapter; package com.owncloud.android.ui.adapter;
@ -26,9 +16,6 @@ import com.owncloud.android.databinding.SslUntrustedCertLayoutBinding;
import com.owncloud.android.lib.common.network.CertificateCombinedException; import com.owncloud.android.lib.common.network.CertificateCombinedException;
import com.owncloud.android.ui.dialog.SslUntrustedCertDialog; import com.owncloud.android.ui.dialog.SslUntrustedCertDialog;
/**
* TODO
*/
public class CertificateCombinedExceptionViewAdapter implements SslUntrustedCertDialog.ErrorViewAdapter { public class CertificateCombinedExceptionViewAdapter implements SslUntrustedCertDialog.ErrorViewAdapter {
//private final static String TAG = CertificateCombinedExceptionViewAdapter.class.getSimpleName(); //private final static String TAG = CertificateCombinedExceptionViewAdapter.class.getSimpleName();

View file

@ -1,24 +1,16 @@
/* /*
* ownCloud Android client application * Nextcloud - Android Client
*
* Copyright (C) 2015 ownCloud Inc.
* Copyright (C) 2017 Tobias Kaminsky
* Copyright (C) 2017 Nextcloud GmbH.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* *
* SPDX-FileCopyrightText: 2022 Unpublished <unpublished@users.noreply.github.com>
* SPDX-FileCopyrightText: 2014-2017 Tobias Kaminsky <tobias@kaminsky.me>
* SPDX-FileCopyrightText: 2017 Nextcloud GmbH
* SPDX-FileCopyrightText: 2016 Iskra Delta <iskradelta@no-reply.github.com>
* SPDX-FileCopyrightText: 2015 ownCloud Inc.
* SPDX-FileCopyrightText: 2015 María Asensio Valverde <masensio@solidgear.es>
* SPDX-FileCopyrightText: 2014 David A. Velasco <dvelasco@solidgear.es>
* SPDX-FileCopyrightText: 2014 Jose Antonio Barros Ramos <jabarros@solidgear.es>
* SPDX-License-Identifier: GPL-2.0-only AND AGPL-3.0-or-later
*/ */
package com.owncloud.android.ui.adapter; package com.owncloud.android.ui.adapter;
import android.graphics.Bitmap; import android.graphics.Bitmap;

View file

@ -1,24 +1,13 @@
/* /*
* ownCloud Android client application * Nextcloud - Android Client
* *
* @author Andy Scherzinger * SPDX-FileCopyrightText: 2023 TSI-mc
* @author TSI-mc * SPDX-FileCopyrightText: 2022 Álvaro Brey <alvaro@alvarobrey.com>
* Copyright (C) 2016 ownCloud Inc. * SPDX-FileCopyrightText: 2018-2022 Tobias Kaminsky <tobias@kaminsky.me>
* Copyright (C) 2023 TSI-mc * SPDX-FileCopyrightText: 2017 Andy Scherzinger <info@andy-scherzinger.de>
* * SPDX-FileCopyrightText: 2017 Mario Danic <mario@lovelyhq.com>
* This program is free software: you can redistribute it and/or modify * SPDX-License-Identifier: AGPL-3.0-or-later
* it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package com.owncloud.android.ui.adapter; package com.owncloud.android.ui.adapter;
import android.content.Context; import android.content.Context;

View file

@ -1,22 +1,11 @@
/** /*
* ownCloud Android client application * Nextcloud - Android Client
*
* @author María Asensio Valverde
* @author David A. Velasco
* Copyright (C) 2015 ownCloud Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* *
* SPDX-FileCopyrightText: 2020 Stefan Niedermann <info@niedermann.it>
* SPDX-FileCopyrightText: 2018 Andy Scherzinger <info@andy-scherzinger.de>
* SPDX-FileCopyrightText: 2015 ownCloud Inc.
* SPDX-FileCopyrightText: 2014 David A. Velasco <dvelasco@solidgear.es>
* SPDX-License-Identifier: GPL-2.0-only AND AGPL-3.0-or-later
*/ */
package com.owncloud.android.ui.adapter; package com.owncloud.android.ui.adapter;
@ -31,9 +20,6 @@ import java.util.Date;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
/**
* TODO
*/
public class SslCertificateViewAdapter implements SslUntrustedCertDialog.CertificateViewAdapter { public class SslCertificateViewAdapter implements SslUntrustedCertDialog.CertificateViewAdapter {
//private final static String TAG = SslCertificateViewAdapter.class.getSimpleName(); //private final static String TAG = SslCertificateViewAdapter.class.getSimpleName();

View file

@ -1,22 +1,10 @@
/** /*
* ownCloud Android client application * Nextcloud - Android Client
*
* @author María Asensio Valverde
* @author David A. Velasco
* Copyright (C) 2015 ownCloud Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* *
* SPDX-FileCopyrightText: 2020 Stefan Niedermann <info@niedermann.it>
* SPDX-FileCopyrightText: 2015 ownCloud Inc.
* SPDX-FileCopyrightText: 2014 David A. Velasco <dvelasco@solidgear.es>
* SPDX-License-Identifier: GPL-2.0-only AND AGPL-3.0-or-later
*/ */
package com.owncloud.android.ui.adapter; package com.owncloud.android.ui.adapter;

View file

@ -1,21 +1,12 @@
/* /*
* ownCloud Android client application * Nextcloud - Android Client
* *
* @author María Asensio Valverde * SPDX-FileCopyrightText: 2020 Stefan Niedermann <info@niedermann.it>
* @author David A. Velasco * SPDX-FileCopyrightText: 2018 Andy Scherzinger <info@andy-scherzinger.de>
* Copyright (C) 2015 ownCloud Inc. * SPDX-FileCopyrightText: 2015 Wikinaut <mail@wikinaut.de>
* * SPDX-FileCopyrightText: 2015 ownCloud Inc.
* This program is free software: you can redistribute it and/or modify * SPDX-FileCopyrightText: 2014 David A. Velasco <dvelasco@solidgear.es>
* it under the terms of the GNU General Public License version 2, * SPDX-License-Identifier: GPL-2.0-only AND AGPL-3.0-or-later
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package com.owncloud.android.ui.adapter; package com.owncloud.android.ui.adapter;

View file

@ -1,23 +1,14 @@
/** /*
* ownCloud Android client application * Nextcloud - Android Client
*
* @author María Asensio Valverde
* @author Juan Carlos González Cabrero
* @author David A. Velasco
* Copyright (C) 2016 ownCloud Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* *
* SPDX-FileCopyrightText: 2021 Chris Narkiewicz <hello@ezaquarii.com>
* SPDX-FileCopyrightText: 2022 Tobias Kaminsky <tobias@kaminsky.me>
* SPDX-FileCopyrightText: 2017 Andy Scherzinger <info@andy-scherzinger.de>
* SPDX-FileCopyrightText: 2016 ownCloud Inc.
* SPDX-FileCopyrightText: 2016 Juan Carlos González Cabrero <malkomich@gmail.com>
* SPDX-FileCopyrightText: 2015 María Asensio Valverde <masensio@solidgear.es>
* SPDX-FileCopyrightText: 2014 David A. Velasco <dvelasco@solidgear.es>
* SPDX-License-Identifier: GPL-2.0-only AND AGPL-3.0-or-later
*/ */
package com.owncloud.android.ui.asynctasks; package com.owncloud.android.ui.asynctasks;

View file

@ -1,27 +1,12 @@
/* /*
* Nextcloud Android client application * Nextcloud - Android Client
* *
* @author Tobias Kaminsky * SPDX-FileCopyrightText: 2023 TSI-mc
* @author Chris Narkiewicz * SPDX-FileCopyrightText: 2022 Álvaro Brey <alvaro.brey@nextcloud.com>
* @author TSI-mc * SPDX-FileCopyrightText: 2019 Chris Narkiewicz <hello@ezaquarii.com>
* * SPDX-FileCopyrightText: 2018 Tobias Kaminsky <tobias@kaminsky.me>
* Copyright (C) 2018 Tobias Kaminsky * SPDX-FileCopyrightText: 2018 Nextcloud GmbH
* Copyright (C) 2018 Nextcloud GmbH. * SPDX-License-Identifier: GPL-3.0-or-later AND AGPL-3.0-or-later
* Copyright (C) 2019 Chris Narkiewicz <hello@ezaquarii.com>
* Copyright (C) 20223TSI-mc
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package com.owncloud.android.ui.dialog package com.owncloud.android.ui.dialog

View file

@ -1,27 +1,18 @@
/* /*
* ownCloud Android client application * Nextcloud - Android Client
* *
* @author Mario Danic * SPDX-FileCopyrightText: 2022 Álvaro Brey <alvaro.brey@nextcloud.com>
* @author Chris Narkiewicz * SPDX-FileCopyrightText: 2018-2021 Tobias Kaminsky <tobias@kaminsky.me>
* * SPDX-FileCopyrightText: 2019 Chris Narkiewicz <hello@ezaquarii.com>
* Copyright (C) 2017 Mario Danic * SPDX-FileCopyrightText: 2017 Andy Scherzinger <info@andy-scherzinger.de>
* Copyright (C) 2012 Bartek Przybylski * SPDX-FileCopyrightText: 2017 Mario Danic <mario@lovelyhq.com>
* Copyright (C) 2012-2016 ownCloud Inc. * SPDX-FileCopyrightText: 2015 ownCloud Inc.
* Copyright (C) 2019 Chris Narkiewicz <hello@ezaquarii.com> * SPDX-FileCopyrightText: 2015 María Asensio Valverde <masensio@solidgear.es>
* * SPDX-FileCopyrightText: 2014 Luke Owncloud <owncloud@ohrt.org
* This program is free software: you can redistribute it and/or modify * SPDX-FileCopyrightText: 2014 David A. Velasco <dvelasco@solidgear.es>
* it under the terms of the GNU General Public License version 2, * SPDX-FileCopyrightText: 2012 Bartosz Przybylski <bart.p.pl@gmail.com>
* as published by the Free Software Foundation. * SPDX-License-Identifier: GPL-2.0-only AND AGPL-3.0-or-later
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package com.owncloud.android.ui.fragment; package com.owncloud.android.ui.fragment;
import android.animation.LayoutTransition; import android.animation.LayoutTransition;

View file

@ -1,29 +1,11 @@
/* /*
* ownCloud Android client application * Nextcloud - Android Client
* *
* @author Bartek Przybylski * SPDX-FileCopyrightText: 2021 TSI-mc
* @author David A. Velasco * SPDX-FileCopyrightText: 2018 Andy Scherzinger <info@andy-scherzinger.de>
* @author Andy Scherzinger * SPDX-FileCopyrightText: 2016 ownCloud Inc.
* @author Chris Narkiewicz * SPDX-FileCopyrightText: 2011 Bartosz Przybylski <bart.p.pl@gmail.com>
* @author TSI-mc * SPDX-License-Identifier: GPL-2.0-only AND AGPL-3.0-or-later
*
* Copyright (C) 2011 Bartek Przybylski
* Copyright (C) 2016 ownCloud Inc.
* Copyright (C) 2018 Andy Scherzinger
* Copyright (C) 2019 Chris Narkiewicz <hello@ezaquarii.com>
* Copyright (C) 2021 TSI-mc
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package com.owncloud.android.ui.fragment; package com.owncloud.android.ui.fragment;

View file

@ -1,24 +1,15 @@
/* /*
* ownCloud Android client application * Nextcloud - Android Client
* *
* @author David A. Velasco * SPDX-FileCopyrightText: 2024 Alper Ozturk <alper_ozturk@proton.me>
* @author Andy Scherzinger * SPDX-FileCopyrightText: 2021 TSI-mc
* Copyright (C) 2015 ownCloud Inc. * SPDX-FileCopyrightText: 2019 Chris Narkiewicz <hello@ezaquarii.com>
* Copyright (C) 2018 Andy Scherzinger * SPDX-FileCopyrightText: 2017 Tobias Kaminsky <tobias@kaminsky.me>
* * SPDX-FileCopyrightText: 2015 ownCloud Inc.
* This program is free software: you can redistribute it and/or modify * SPDX-FileCopyrightText: 2015 María Asensio Valverde <masensio@solidgear.es>
* it under the terms of the GNU General Public License version 2, * SPDX-FileCopyrightText: 2013 David A. Velasco<dvelasco@solidgear.es>
* as published by the Free Software Foundation. * SPDX-License-Identifier: GPL-2.0-only AND AGPL-3.0-or-later
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package com.owncloud.android.ui.fragment; package com.owncloud.android.ui.fragment;
import android.app.Activity; import android.app.Activity;
@ -33,7 +24,6 @@ import androidx.fragment.app.Fragment;
import static com.owncloud.android.ui.activity.FileActivity.EXTRA_FILE; import static com.owncloud.android.ui.activity.FileActivity.EXTRA_FILE;
/** /**
* Common methods for {@link Fragment}s containing {@link OCFile}s * Common methods for {@link Fragment}s containing {@link OCFile}s
*/ */
@ -43,10 +33,8 @@ public class FileFragment extends Fragment {
protected ContainerActivity containerActivity; protected ContainerActivity containerActivity;
/** /**
* Creates an empty fragment. * Creates an empty fragment.
*
* It's necessary to keep a public constructor without parameters; the system uses it when * It's necessary to keep a public constructor without parameters; the system uses it when
* tries to reinstantiate a fragment automatically. * tries to reinstantiate a fragment automatically.
*/ */

View file

@ -1,26 +1,11 @@
/* /*
* Nextcloud Android client application * Nextcloud - Android Client
* *
* @author Tobias Kaminsky * SPDX-FileCopyrightText: 2023 TSI-mc
* @author TSI-mc * SPDX-FileCopyrightText: 2019 Tobias Kaminsky <tobias@kaminsky.me>
* Copyright (C) 2019 Tobias Kaminsky * SPDX-FileCopyrightText: 2019 Nextcloud GmbH
* Copyright (C) 2019 Nextcloud GmbH * SPDX-License-Identifier: GPL-3.0-or-later AND AGPL-3.0-or-later
* Copyright (C) 2023 TSI-mc
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package com.owncloud.android.ui.fragment; package com.owncloud.android.ui.fragment;
import android.content.BroadcastReceiver; import android.content.BroadcastReceiver;

View file

@ -1,22 +1,13 @@
/* /*
* ownCloud Android client application * Nextcloud - Android Client
*
* Copyright (C) 2015 ownCloud Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* *
* SPDX-FileCopyrightText: 2023 Jonas Mayer <jonas.a.mayer@gmx.net>
* SPDX-FileCopyrightText: 2018 Andy Scherzinger <info@andy-scherzinger.de>
* SPDX-FileCopyrightText: 2017 Tobias Kaminsky <tobias@kaminsky.me>
* SPDX-FileCopyrightText: 2015 ownCloud Inc.
* SPDX-FileCopyrightText: 2014 David A. Velasco <dvelasco@solidgear.es>
* SPDX-License-Identifier: GPL-2.0-only AND AGPL-3.0-or-later
*/ */
package com.owncloud.android.ui.notifications; package com.owncloud.android.ui.notifications;
import android.app.NotificationManager; import android.app.NotificationManager;

View file

@ -1,21 +1,14 @@
/* /*
* ownCloud Android client application * Nextcloud - Android Client
*
* @author David A. Velasco
* Copyright (C) 2015 ownCloud Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* *
* SPDX-FileCopyrightText: 2023 Alper Ozturk <alper_ozturk@proton.me>
* SPDX-FileCopyrightText: 2022 Álvaro Brey <alvaro@alvarobrey.com>
* SPDX-FileCopyrightText: 2022 Tobias Kaminsky <tobias@kaminsky.me>
* SPDX-FileCopyrightText: 2020 Chris Narkiewicz <hello@ezaquarii.com>
* SPDX-FileCopyrightText: 2018 Andy Scherzinger <info@andy-scherzinger.de>
* SPDX-FileCopyrightText: 2015 ownCloud Inc.
* SPDX-FileCopyrightText: 2013-2015 David A. Velasco <dvelasco@solidgear.es>
* SPDX-License-Identifier: GPL-2.0-only AND AGPL-3.0-or-later
*/ */
package com.owncloud.android.ui.preview; package com.owncloud.android.ui.preview;
@ -46,7 +39,6 @@ import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment; import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentStatePagerAdapter; import androidx.fragment.app.FragmentStatePagerAdapter;
/** /**
* This Fragment is used to monitor the progress of a file downloading. * This Fragment is used to monitor the progress of a file downloading.
*/ */

View file

@ -1,21 +1,12 @@
/* /*
* ownCloud Android client application * Nextcloud - Android Client
*
* @author David A. Velasco
* Copyright (C) 2015 ownCloud Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* *
* SPDX-FileCopyrightText: 2023 Alper Ozturk <alper_ozturk@proton.me>
* SPDX-FileCopyrightText: 2018 Tobias Kaminsky <tobias@kaminsky.me>
* SPDX-FileCopyrightText: 2020 Chris Narkiewicz <hello@ezaquarii.com>
* SPDX-FileCopyrightText: 2015 ownCloud Inc.
* SPDX-FileCopyrightText: 2013 David A. Velasco <dvelasco@solidgear.es>
* SPDX-License-Identifier: GPL-2.0-only AND AGPL-3.0-or-later
*/ */
package com.owncloud.android.ui.preview; package com.owncloud.android.ui.preview;

View file

@ -1,29 +1,13 @@
/* /*
* ownCloud Android client application * Nextcloud - Android Client
* *
* @author David A. Velasco * SPDX-FileCopyrightText: 2023 TSI-mc
* @author Chris Narkiewicz * SPDX-FileCopyrightText: 2023 Parneet Singh <gurayaparneet@gmail.com>
* @author Andy Scherzinger * SPDX-FileCopyrightText: 2020 Andy Scherzinger <info@andy-scherzinger.de>
* @author TSI-mc * SPDX-FileCopyrightText: 2019 Chris Narkiewicz <hello@ezaquarii.com>
* @author Parneet Singh * SPDX-FileCopyrightText: 2016 ownCloud Inc.
* * SPDX-FileCopyrightText: 2013 David A. Velasco <dvelasco@solidgear.es>
* Copyright (C) 2016 ownCloud Inc. * SPDX-License-Identifier: GPL-2.0-only AND AGPL-3.0-or-later
* Copyright (C) 2019 Chris Narkiewicz <hello@ezaquarii.com>
* Copyright (C) 2020 Andy Scherzinger
* Copyright (C) 2023 TSI-mc
* Copyright (C) 2023 Parneet Singh
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package com.owncloud.android.ui.preview; package com.owncloud.android.ui.preview;

View file

@ -1,22 +1,13 @@
/* /*
* ownCloud Android client application * Nextcloud - Android Client
*
* Copyright (C) 2016 ownCloud Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* *
* SPDX-FileCopyrightText: 2019-2022 Tobias Kaminsky <tobias@kaminsky.me>
* SPDX-FileCopyrightText: 2019-2022 Andy Scherzinger <info@andy-scherzinger.de>
* SPDX-FileCopyrightText: 2019 Chris Narkiewicz <hello@ezaquarii.com>
* SPDX-FileCopyrightText: 2016 ownCloud Inc.
* SPDX-FileCopyrightText: 2014 Jorge Antonio Diaz-Benito Soriano <jorge.diazbenitosoriano@gmail.com>
* SPDX-License-Identifier: GPL-2.0-only AND AGPL-3.0-or-later
*/ */
package com.owncloud.android.ui.preview; package com.owncloud.android.ui.preview;
import android.app.Activity; import android.app.Activity;

View file

@ -1,27 +1,12 @@
/* /*
* Nextcloud Android client application * Nextcloud - Android Client
* *
* @author Tobias Kaminsky * SPDX-FileCopyrightText: 2023 TSI-mc
* @author TSI-mc * SPDX-FileCopyrightText: Alper Ozturk <alper_ozturk@proton.me>
* @author Chris Narkiewicz * SPDX-FileCopyrightText: 2019 Chris Narkiewicz <hello@ezaquarii.com>
* * SPDX-FileCopyrightText: 2018 Tobias Kaminsky <tobias@kaminsky.me>
* Copyright (C) 2018 Tobias Kaminsky * SPDX-FileCopyrightText: 2018 Nextcloud GmbH
* Copyright (C) 2018 Nextcloud GmbH. * SPDX-License-Identifier: AGPL-3.0-or-later
* Copyright (C) 2019 Chris Narkiewicz <hello@ezaquarii.com>
* Copyright (C) 2023 TSI-mc
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
@file:Suppress("DEPRECATION") @file:Suppress("DEPRECATION")

View file

@ -1,20 +1,11 @@
/* /*
* ownCloud Android client application * Nextcloud - Android Client
* *
* @author David A. Velasco * SPDX-FileCopyrightText: 2020-2022 Tobias Kaminsky <tobias@kaminsky.me>
* Copyright (C) 2015 ownCloud Inc. * SPDX-FileCopyrightText: 23017-2018 Andy Scherzinger <info@andy-scherzinger.de>
* * SPDX-FileCopyrightText: 2015 ownCloud Inc.
* This program is free software: you can redistribute it and/or modify * SPDX-FileCopyrightText: 2014 David A. Velasco <dvelasco@solidgear.es>
* it under the terms of the GNU General Public License version 2, * SPDX-License-Identifier: GPL-2.0-only AND AGPL-3.0-or-later
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package com.owncloud.android.utils; package com.owncloud.android.utils;

View file

@ -1,21 +1,11 @@
/* /*
* ownCloud Android client application * Nextcloud - Android Client
*
* @author María Asensio Valverde
* Copyright (C) 2016 ownCloud GmbH.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* *
* SPDX-FileCopyrightText: 2017-2021 Andy Scherzinger <info@andy-scherzinger.de>
* SPDX-FileCopyrightText: 2017 Tobias Kaminsky <tobias@kaminsky.me>
* SPDX-FileCopyrightText: 2016 ownCloud Inc.
* SPDX-FileCopyrightText: 2015 María Asensio Valverde <masensio@solidgear.es>
* SPDX-License-Identifier: GPL-2.0-only AND AGPL-3.0-or-later
*/ */
package com.owncloud.android.utils; package com.owncloud.android.utils;

View file

@ -1,22 +1,13 @@
/* /*
* ownCloud Android client application * Nextcloud - Android Client
* *
* @author David A. Velasco * SPDX-FileCopyrightText: 2022 Álvaro Brey <alvaro@alvarobrey.com>
* Copyright (C) 2016 ownCloud Inc. * SPDX-FileCopyrightText: 2019 Tobias Kaminsky <tobias@kaminsky.me>
* * SPDX-FileCopyrightText: 2016-2018 Andy Scherzinger <info@andy-scherzinger.de>
* This program is free software: you can redistribute it and/or modify * SPDX-FileCopyrightText: 2016 ownCloud Inc.
* it under the terms of the GNU General Public License version 2, * SPDX-FileCopyrightText: 2014 David A. Velasco <dvelasco@solidgear.es>
* as published by the Free Software Foundation. * SPDX-License-Identifier: GPL-2.0-only AND AGPL-3.0-or-later
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package com.owncloud.android.utils; package com.owncloud.android.utils;
import android.Manifest; import android.Manifest;

View file

@ -1,23 +1,13 @@
/* /*
* ownCloud Android client application * Nextcloud - Android Client
* <p> *
* @author TSI-mc * SPDX-FileCopyrightText: 2023 TSI-mc
* Copyright (C) 2016 ownCloud Inc. * SPDX-FileCopyrightText: 2023 alperozturk <alper_ozturk@proton.me>
* Copyright (C) 2023 TSI-mc * SPDX-FileCopyrightText: 2022 Álvaro Brey <alvaro@alvarobrey.com>
* <p> * SPDX-FileCopyrightText: 2018-2022 Tobias Kaminsky <tobias@kaminsky.me>
* This program is free software: you can redistribute it and/or modify * SPDX-FileCopyrightText: 2016 Andy Scherzinger <info@andy-scherzinger.de>
* it under the terms of the GNU General Public License version 2, * SPDX-License-Identifier: AGPL-3.0-or-later
* as published by the Free Software Foundation.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package com.owncloud.android.utils; package com.owncloud.android.utils;
import android.content.Context; import android.content.Context;

View file

@ -1,27 +1,11 @@
/* /*
* ownCloud Android client application * Nextcloud - Android Client
* *
* @author Bartek Przybylski * SPDX-FileCopyrightText: 2019-2020 Tobias Kaminsky <tobias@kaminsky.me>
* Copyright (C) 2011 Bartek Przybylski * SPDX-License-Identifier: AGPL-3.0-or-later
* Copyright (C) 2015 ownCloud Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package com.owncloud.android.utils; package com.owncloud.android.utils;
/**
* Represents a session to an ownCloud instance
*/
class OwnCloudSession { class OwnCloudSession {
private String sessionName; private String sessionName;
private String sessionUrl; private String sessionUrl;

View file

@ -6,7 +6,7 @@
~ SPDX-FileCopyrightText: 2017-2024 Andy Scherzinger <info@andy-scherzinger.de> ~ SPDX-FileCopyrightText: 2017-2024 Andy Scherzinger <info@andy-scherzinger.de>
~ SPDX-FileCopyrightText: 2020 Joris Bodin <joris.bodin@infomaniak.com> ~ SPDX-FileCopyrightText: 2020 Joris Bodin <joris.bodin@infomaniak.com>
~ SPDX-FileCopyrightText: 2015 ownCloud Inc. ~ SPDX-FileCopyrightText: 2015 ownCloud Inc.
~ SPDX-FileCopyrightText: 22014 jabarros <jabarros@solidgear.es> ~ SPDX-FileCopyrightText: 2014 Jose Antonio Barros Ramos <jabarros@solidgear.es>
~ SPDX-License-Identifier: GPL-2.0-only AND AGPL-3.0-or-later ~ SPDX-License-Identifier: GPL-2.0-only AND AGPL-3.0-or-later
--> -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"

View file

@ -1,20 +1,8 @@
/* /*
* NextCloud Android client application * Nextcloud - Android Client
* *
* @copyright Copyright (C) 2019 Daniele Fognini <dfogni@gmail.com> * SPDX-FileCopyrightText: 2019 Daniele Fognini <dfogni@gmail.com>
* * SPDX-License-Identifier: GPL-3.0-or-later
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package com.owncloud.android.ui.db package com.owncloud.android.ui.db