Merge remote-tracking branch 'origin/master' into dev

This commit is contained in:
Tobias Kaminsky 2024-04-09 02:30:58 +02:00
commit 2ff249bda9
66 changed files with 409 additions and 1117 deletions

View file

@ -1,99 +0,0 @@
Standard Google Material Design icons
Copyright (c) 2014, Google (http://www.google.com/design/)
uses the license at https://github.com/google/material-design-icons/blob/master/LICENSE
Twitter icon graphic
Copyright (c) 2014, Austin Andrews (http://materialdesignicons.com/),
with Reserved Font Name Material Design Icons.
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

View file

@ -5,7 +5,7 @@
* SPDX-FileCopyrightText: 2024 Alper Ozturk <alper_ozturk@proton.me> * SPDX-FileCopyrightText: 2024 Alper Ozturk <alper_ozturk@proton.me>
* SPDX-FileCopyrightText: 2024 Tobias Kaminsky <tobias@kaminsky.me> * SPDX-FileCopyrightText: 2024 Tobias Kaminsky <tobias@kaminsky.me>
* SPDX-FileCopyrightText: 2024 Andy Scherzinger <info@andy-scherzinger.de> * SPDX-FileCopyrightText: 2024 Andy Scherzinger <info@andy-scherzinger.de>
* SPDX-FileCopyrightText: 2022 Álvaro Brey Vilas <alvaro.brey@nextcloud.com> * SPDX-FileCopyrightText: 2022 Álvaro Brey Vilas <alvaro@alvarobrey.com>
* SPDX-License-Identifier: AGPL-3.0-or-later * SPDX-License-Identifier: AGPL-3.0-or-later
*/ */
import com.github.spotbugs.snom.Confidence import com.github.spotbugs.snom.Confidence

View file

@ -3,7 +3,7 @@
* *
* SPDX-FileCopyrightText: 2018 Tobias Kaminsky <tobias@kaminsky.me> * SPDX-FileCopyrightText: 2018 Tobias Kaminsky <tobias@kaminsky.me>
* SPDX-FileCopyrightText: 2015 ownCloud Inc. * SPDX-FileCopyrightText: 2015 ownCloud Inc.
* SPDX-License-Identifier: GPL-2.0-only * SPDX-License-Identifier: GPL-2.0-only AND AGPL-3.0-or-later
*/ */
package com.owncloud.android.uiautomator; package com.owncloud.android.uiautomator;

View file

@ -1,22 +1,9 @@
/* /*
* Nextcloud Android client application * Nextcloud - Android Client
* *
* @author Álvaro Brey Vilas * SPDX-FileCopyrightText: 2022 Álvaro Brey Vilas
* Copyright (C) 2022 Álvaro Brey Vilas * SPDX-FileCopyrightText: 2022 Nextcloud GmbH
* Copyright (C) 2022 Nextcloud GmbH * 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.files package com.owncloud.android.files

View file

@ -1,7 +1,7 @@
/* /*
* Nextcloud - Android Client * Nextcloud - Android Client
* *
* SPDX-FileCopyrightText: 2022 Álvaro Brey <alvaro.brey@nextcloud.com> * SPDX-FileCopyrightText: 2022 Álvaro Brey <alvaro@alvarobrey.com>
* SPDX-FileCopyrightText: 2022 Nextcloud GmbH * SPDX-FileCopyrightText: 2022 Nextcloud GmbH
* SPDX-License-Identifier: AGPL-3.0-or-later * SPDX-License-Identifier: AGPL-3.0-or-later
*/ */

View file

@ -1,7 +1,7 @@
/* /*
* Nextcloud - Android Client * Nextcloud - Android Client
* *
* SPDX-FileCopyrightText: 2022 Álvaro Brey <alvaro.brey@nextcloud.com> * SPDX-FileCopyrightText: 2022 Álvaro Brey <alvaro@alvarobrey.com>
* SPDX-FileCopyrightText: 2022 Nextcloud GmbH * SPDX-FileCopyrightText: 2022 Nextcloud GmbH
* SPDX-License-Identifier: AGPL-3.0-or-later * SPDX-License-Identifier: AGPL-3.0-or-later
*/ */

View file

@ -1,24 +1,9 @@
/* /*
* Nextcloud Android client application * Nextcloud - Android Client
* *
* @author Chris Narkiewicz * SPDX-FileCopyrightText: 2019 Chris Narkiewicz <hello@ezaquarii.com>
* * SPDX-License-Identifier: AGPL-3.0-or-later
* Copyright (C) 2019 Chris Narkiewicz <hello@ezaquarii.com>
*
* 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.nextcloud.client.device package com.nextcloud.client.device
import android.content.Context import android.content.Context

View file

@ -1,27 +1,11 @@
/* /*
* Nextcloud Android client application * Nextcloud - Android Client
* *
* @author Chris Narkiewicz * SPDX-FileCopyrightText: 2020 Chris Narkiewicz <hello@ezaquarii.com>
* @author Tobias Kaminsky * SPDX-FileCopyrightText: 2019 Tobias Kaminsky
* * SPDX-FileCopyrightText: 2019 Nextcloud GmbH
* Copyright (C) 2020 Chris Narkiewicz <hello@ezaquarii.com> * SPDX-License-Identifier: AGPL-3.0-or-later
* Copyright (C) 2019 Tobias Kaminsky
* Copyright (C) 2019 Nextcloud GmbH
*
* 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.nextcloud.client.device package com.nextcloud.client.device
import android.content.Context import android.content.Context

View file

@ -1,24 +1,9 @@
/* /*
* Nextcloud Android client application * Nextcloud - Android Client
* *
* @author Chris Narkiewicz * SPDX-FileCopyrightText: 2020 Chris Narkiewicz <hello@ezaquarii.com>
* * SPDX-License-Identifier: AGPL-3.0-or-later
* Copyright (C) 2020 Chris Narkiewicz <hello@ezaquarii.com>
*
* 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.nextcloud.client.device package com.nextcloud.client.device
/** /**

View file

@ -1,24 +1,9 @@
/* /*
* Nextcloud Android client application * Nextcloud - Android Client
* *
* @author Chris Narkiewicz * SPDX-FileCopyrightText: 2020 Chris Narkiewicz <hello@ezaquarii.com>
* * SPDX-License-Identifier: AGPL-3.0-or-later
* Copyright (C) 2020 Chris Narkiewicz <hello@ezaquarii.com>
*
* 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.nextcloud.client.device package com.nextcloud.client.device
import android.content.Context import android.content.Context

View file

@ -1,24 +1,9 @@
/* /*
* Nextcloud application * Nextcloud - Android Client
* *
* @author Mario Danic * SPDX-FileCopyrightText: 2020 Chris Narkiewicz <hello@ezaquarii.com>
* @author Chris Narkiewicz * SPDX-License-Identifier: AGPL-3.0-or-later
* Copyright (C) 2017-2018 Mario Danic <mario@lovelyhq.com> */
* Copyright (C) 2020 Chris Narkiewicz <hello@ezaquarii.com>
*
* 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 <http://www.gnu.org/licenses/>.
*/
package com.nextcloud.client.jobs package com.nextcloud.client.jobs
import android.accounts.AuthenticatorException import android.accounts.AuthenticatorException

View file

@ -1,10 +1,7 @@
/** /*
* Nextcloud Android client application * Nextcloud - Android Client
*
* @author Chris Narkiewicz
*
* Copyright (C) 2019 Chris Narkiewicz <hello@ezaquarii.com>
* *
* SPDX-FileCopyrightText: 2019 Chris Narkiewicz <hello@ezaquarii.com>
* SPDX-License-Identifier: AGPL-3.0-or-later * SPDX-License-Identifier: AGPL-3.0-or-later
*/ */
package com.nextcloud.client.media package com.nextcloud.client.media

View file

@ -1,10 +1,7 @@
/* /*
* Nextcloud Android client application * Nextcloud - Android Client
*
* @author Chris Narkiewicz
*
* Copyright (C) 2019 Chris Narkiewicz <hello@ezaquarii.com>
* *
* SPDX-FileCopyrightText: 2019 Chris Narkiewicz <hello@ezaquarii.com>
* SPDX-License-Identifier: AGPL-3.0-or-later * SPDX-License-Identifier: AGPL-3.0-or-later
*/ */
package com.nextcloud.client.media package com.nextcloud.client.media

View file

@ -1,13 +1,8 @@
/* /*
* Nextcloud Android client application * Nextcloud - Android Client
*
* @author David A. Velasco
* @author masensio
* @author Chris Narkiewicz
* Copyright (C) 2013 David A. Velasco
* Copyright (C) 2016 masensio
* Copyright (C) 2019 Chris Narkiewicz <hello@ezaquarii.com>
* *
* SPDX-FileCopyrightText: 2022 Álvaro Brey <alvaro@alvarobrey.com>
* SPDX-FileCopyrightText: 2019 Chris Narkiewicz <hello@ezaquarii.com>
* SPDX-License-Identifier: AGPL-3.0-or-later * SPDX-License-Identifier: AGPL-3.0-or-later
*/ */
package com.nextcloud.client.media package com.nextcloud.client.media

View file

@ -1,12 +1,8 @@
/* /*
* Nextcloud Android client application * Nextcloud - Android Client
*
* @author Chris Narkiewicz
* @author Tobias Kaminsky
*
* Copyright (C) 2019 Chris Narkiewicz <hello@ezaquarii.com>
* Copyright (C) 2018 Tobias Kaminsky
* *
* SPDX-FileCopyrightText: 2019 Chris Narkiewicz <hello@ezaquarii.com>
* SPDX-FileCopyrightText: 2018 Tobias Kaminsky <tobias@kaminsky.me>
* SPDX-License-Identifier: AGPL-3.0-or-later * SPDX-License-Identifier: AGPL-3.0-or-later
*/ */
package com.nextcloud.client.media package com.nextcloud.client.media

View file

@ -1,14 +1,9 @@
/* /*
* Nextcloud Android client application * Nextcloud - Android Client
* *
* @author Bartosz Przybylski * SPDX-FileCopyrightText: 2023 Alper Ozturk <alper_ozturk@proton.me>
* @author Chris Narkiewicz * SPDX-FileCopyrightText: 2018 Tobias Kaminsky <tobias@kaminsky.me>
* Copyright (C) 2015 Bartosz Przybylski * SPDX-License-Identifier: AGPL-3.0-or-later
* Copyright (C) 2015 ownCloud Inc.
* Copyright (C) 2016 Nextcloud.
* Copyright (C) 2019 Chris Narkiewicz <hello@ezaquarii.com>
*
* SPDX-License-Identifier: GPL-2.0-only AND AGPL-3.0-or-later
*/ */
package com.nextcloud.client.onboarding package com.nextcloud.client.onboarding

View file

@ -1,14 +1,11 @@
/* /*
* Nextcloud Android client application * Nextcloud - Android Client
* *
* @author Bartosz Przybylski * SPDX-FileCopyrightText: 2023 Alper Ozturk <alper_ozturk@proton.me>
* @author Chris Narkiewicz * SPDX-FileCopyrightText: 2023 Álvaro Brey <alvaro@alvarobrey.com>
* Copyright (C) 2015 Bartosz Przybylski * SPDX-FileCopyrightText: 2017 Tobias Kaminsky <tobias@kaminsky.me>
* Copyright (C) 2015 ownCloud Inc. * SPDX-FileCopyrightText: 2016 Andy Scherzinger <info@andy-scherzinger.de>
* Copyright (C) 2016 Nextcloud. * SPDX-License-Identifier: AGPL-3.0-or-later
* Copyright (C) 2019 Chris Narkiewicz <hello@ezaquarii.com>
*
* SPDX-License-Identifier: GPL-2.0-only AND AGPL-3.0-or-later
*/ */
package com.nextcloud.client.onboarding package com.nextcloud.client.onboarding

View file

@ -1,26 +1,13 @@
/* /*
* ownCloud Android client application * Nextcloud - Android Client
* *
* @author David A. Velasco * SPDX-FileCopyrightText: 2023 TSI-mc
* @author Chris Narkiewicz Chris Narkiewicz * SPDX-FileCopyrightText: 2022 Álvaro Brey <alvaro@alvarobrey.com>
* @author TSI-mc * SPDX-FileCopyrightText: 2019 Tobias Kaminsky <tobias@kaminsky.me>
* Copyright (C) 2016 ownCloud Inc. * SPDX-FileCopyrightText: 2019 Chris Narkiewicz <hello@ezaquarii.com>
* Copyright (C) 2019 Chris Narkiewicz <hello@ezaquarii.com> * SPDX-FileCopyrightText: 2016 Andy Scherzinger <info@andy-scherzinger.de>
* Copyright (C) 2023 TSI-mc * 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.nextcloud.client.preferences; package com.nextcloud.client.preferences;
import android.annotation.SuppressLint; import android.annotation.SuppressLint;

View file

@ -1,25 +1,17 @@
/* /*
* ownCloud Android client application * Nextcloud - Android Client
* *
* @author masensio * SPDX-FileCopyrightText: 2023 Alper Ozturk <alper_ozturk@proton.me>
* @author David A. Velasco * SPDX-FileCopyrightText: 2023 TSI-mc
* @author Chris Narkiewicz * SPDX-FileCopyrightText: 2022-2023 Álvaro Brey <alvaro@alvarobrey.com>
* @author TSI-mc * SPDX-FileCopyrightText: 2016-2020 Tobias Kaminsky <tobias@kaminsky.me>
* Copyright (C) 2015 ownCloud Inc. * SPDX-FileCopyrightText: 2019 Chris Narkiewicz <hello@ezaquarii.com>
* Copyright (C) 2019 Chris Narkiewicz <hello@ezaquarii.com> * SPDX-FileCopyrightText: 2019 Alice Gaudon <alice@gaudon.pro>
* Copyright (C) 2023 TSI-mc * SPDX-FileCopyrightText: 2016 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-FileCopyrightText: 2013 masensio <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; package com.owncloud.android;
@ -128,9 +120,8 @@ import static com.owncloud.android.ui.activity.ContactsPreferenceActivity.PREFER
/** /**
* Main Application of the project * Main Application of the project.
* <p> * Contains methods to build the "static" strings. These strings were before constants in different classes.
* Contains methods to build the "static" strings. These strings were before constants in different classes
*/ */
public class MainApp extends MultiDexApplication implements HasAndroidInjector { public class MainApp extends MultiDexApplication implements HasAndroidInjector {
public static final OwnCloudVersion OUTDATED_SERVER_VERSION = NextcloudVersion.nextcloud_23; public static final OwnCloudVersion OUTDATED_SERVER_VERSION = NextcloudVersion.nextcloud_23;

View file

@ -1,26 +1,14 @@
/* /*
* ownCloud Android client application * Nextcloud - Android Client
*
* @author Tobias Kaminsky
* @author David A. Velasco
* @author Chris Narkiewicz
* Copyright (C) 2015 ownCloud Inc.
* Copyright (C) 2019 Chris Narkiewicz <hello@ezaquarii.com>
*
* 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-2023 Álvaro Brey <alvaro@alvarobrey.com>
* SPDX-FileCopyrightText: 2017-2020 Tobias Kaminsky <tobias@kaminsky.me>
* SPDX-FileCopyrightText: 2016-2020 Andy Scherzinger <info@andy-scherzinger.de>
* SPDX-FileCopyrightText: 2019 Chris Narkiewicz <hello@ezaquarii.com>
* 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.datamodel; package com.owncloud.android.datamodel;
import android.content.Context; import android.content.Context;

View file

@ -1,25 +1,16 @@
/* /*
* ownCloud Android client application * Nextcloud - Android Client
* *
* @author LukeOwncloud * SPDX-FileCopyrightText: 2024 Jonas Mayer <jonas.a.mayer@gmx.net>
* @author David A. Velasco * SPDX-FileCopyrightText: 2022 Álvaro Brey <alvaro@alvarobrey.com>
* @author masensio * SPDX-FileCopyrightText: 2018-2020 Tobias Kaminsky <tobias@kaminsky.me>
* @author Chris Narkiewicz * SPDX-FileCopyrightText: 2019-2021 Chris Narkiewicz <hello@ezaquarii.com>
* * SPDX-FileCopyrightText: 2016-2020 Andy Scherzinger <info@andy-scherzinger.de>
* Copyright (C) 2016 ownCloud Inc. * SPDX-FileCopyrightText: 2016 ownCloud Inc.
* Copyright (C) 2019 Chris Narkiewicz <hello@ezaquarii.com> * SPDX-FileCopyrightText: 2016 masensio <masensio@solidgear.es>
* * SPDX-FileCopyrightText: 2016 David A. Velasco <dvelasco@solidgear.es>
* This program is free software: you can redistribute it and/or modify * SPDX-FileCopyrightText: 2014 Luke Owncloud <owncloud@ohrt.org>
* 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.datamodel; package com.owncloud.android.datamodel;

View file

@ -1,26 +1,12 @@
/* /*
* ownCloud Android client application * Nextcloud - Android Client
* *
* @author Andy Scherzinger * SPDX-FileCopyrightText: 2022 Álvaro Brey <alvaro@alvarobrey.com>
* @author Tobias Kaminsky * SPDX-FileCopyrightText: 2019-2021 Chris Narkiewicz <hello@ezaquarii.com>
* @author Chris Narkiewicz * SPDX-FileCopyrightText: 2015-2020 Tobias Kaminsky <tobias@kaminsky.me>
* Copyright (C) 2016 ownCloud Inc. * SPDX-FileCopyrightText: 2016-2018 Andy Scherzinger <info@andy-scherzinger.de>
* Copyright (C) 2018 Andy Scherzinger * SPDX-License-Identifier: AGPL-3.0-or-later
* Copyright (C) 2019 Chris Narkiewicz <hello@ezaquarii.com>
*
* 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.graphics.Canvas; import android.graphics.Canvas;
@ -46,22 +32,22 @@ public class TextDrawable extends Drawable {
/** /**
* the text to be rendered. * the text to be rendered.
*/ */
private String mText; private String text;
/** /**
* the text paint to be rendered. * the text paint to be rendered.
*/ */
private Paint mTextPaint; private Paint textPaint;
/** /**
* the background to be rendered. * the background to be rendered.
*/ */
private Paint mBackground; private Paint background;
/** /**
* the radius of the circular background to be rendered. * the radius of the circular background to be rendered.
*/ */
private float mRadius; private float radius;
private boolean bigText = false; private boolean bigText = false;
@ -73,19 +59,19 @@ public class TextDrawable extends Drawable {
* @param radius circle radius * @param radius circle radius
*/ */
public TextDrawable(String text, BitmapUtils.Color color, float radius) { public TextDrawable(String text, BitmapUtils.Color color, float radius) {
mRadius = radius; this.radius = radius;
mText = text; this.text = text;
mBackground = new Paint(); background = new Paint();
mBackground.setStyle(Paint.Style.FILL); background.setStyle(Paint.Style.FILL);
mBackground.setAntiAlias(true); background.setAntiAlias(true);
mBackground.setColor(Color.argb(color.a, color.r, color.g, color.b)); background.setColor(Color.argb(color.a, color.r, color.g, color.b));
mTextPaint = new Paint(); textPaint = new Paint();
mTextPaint.setColor(Color.WHITE); textPaint.setColor(Color.WHITE);
mTextPaint.setTextSize(radius); textPaint.setTextSize(radius);
mTextPaint.setAntiAlias(true); textPaint.setAntiAlias(true);
mTextPaint.setTextAlign(Paint.Align.CENTER); textPaint.setTextAlign(Paint.Align.CENTER);
setBounds(0, 0, (int) radius * 2, (int) radius * 2); setBounds(0, 0, (int) radius * 2, (int) radius * 2);
} }
@ -155,23 +141,23 @@ public class TextDrawable extends Drawable {
*/ */
@Override @Override
public void draw(@NonNull Canvas canvas) { public void draw(@NonNull Canvas canvas) {
canvas.drawCircle(mRadius, mRadius, mRadius, mBackground); canvas.drawCircle(radius, radius, radius, background);
if (bigText) { if (bigText) {
mTextPaint.setTextSize(1.8f * mRadius); textPaint.setTextSize(1.8f * radius);
} }
canvas.drawText(mText, mRadius, mRadius - ((mTextPaint.descent() + mTextPaint.ascent()) / 2), mTextPaint); canvas.drawText(text, radius, radius - ((textPaint.descent() + textPaint.ascent()) / 2), textPaint);
} }
@Override @Override
public void setAlpha(int alpha) { public void setAlpha(int alpha) {
mTextPaint.setAlpha(alpha); textPaint.setAlpha(alpha);
} }
@Override @Override
public void setColorFilter(ColorFilter cf) { public void setColorFilter(ColorFilter cf) {
mTextPaint.setColorFilter(cf); textPaint.setColorFilter(cf);
} }
@Override @Override

View file

@ -1,12 +1,9 @@
/* /*
* Nextcloud Android client application * Nextcloud - Android Client
*
* @author Tobias Kaminsky
* @author Chris Narkiewicz <hello@ezaquarii.com>
* Copyright (C) 2017 Tobias Kaminsky
* Copyright (C) 2017 Nextcloud GmbH.
* Copyright (C) 2020 Chris Narkiewicz <hello@ezaquarii.com>
* *
* SPDX-FileCopyrightText: 2020 Chris Narkiewicz <hello@ezaquarii.com>
* SPDX-FileCopyrightText: 2017 Tobias Kaminsky <tobias@kaminsky.me>
* SPDX-FileCopyrightText: 2017 Nextcloud GmbH
* SPDX-License-Identifier: AGPL-3.0-or-later * SPDX-License-Identifier: AGPL-3.0-or-later
*/ */
package com.owncloud.android.ui.activity; package com.owncloud.android.ui.activity;

View file

@ -1,28 +1,17 @@
/* /*
* ownCloud Android client application * Nextcloud - Android Client
*
* @author David A. Velasco
* @author Chris Narkiewicz
* @author TSI-mc
* Copyright (C) 2011 Bartek Przybylski
* Copyright (C) 2016 ownCloud Inc.
* 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/>.
* *
* SPDX-FileCopyrightText: 2021 TSI-mc
* SPDX-FileCopyrightText: 2022 Álvaro Brey <alvaro@alvarobrey.com>
* SPDX-FileCopyrightText: 2017-2023 Tobias Kaminsky <tobias@kaminsky.me>
* SPDX-FileCopyrightText: 2019 Chris Narkiewicz <hello@ezaquarii.com>
* SPDX-FileCopyrightText: 2018 Andy Scherzinger <info@andy-scherzinger.de>
* SPDX-FileCopyrightText: 2016 ownCloud Inc.
* SPDX-FileCopyrightText: 2015 masensio <masensio@solidgear.es>
* SPDX-FileCopyrightText: 2013 David A. Velasco <dvelasco@solidgear.es>
* SPDX-FileCopyrightText: 2011 Bartek Przybylski
* 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;
@ -116,7 +105,6 @@ import androidx.fragment.app.FragmentTransaction;
import static com.owncloud.android.ui.activity.FileDisplayActivity.TAG_PUBLIC_LINK; import static com.owncloud.android.ui.activity.FileDisplayActivity.TAG_PUBLIC_LINK;
/** /**
* Activity with common behaviour for activities handling {@link OCFile}s in ownCloud {@link Account}s . * Activity with common behaviour for activities handling {@link OCFile}s in ownCloud {@link Account}s .
*/ */

View file

@ -1,25 +1,10 @@
/* /*
* Nextcloud Android client application * Nextcloud - Android Client
* *
* @author Tobias Kaminsky * SPDX-FileCopyrightText: 2019 Chris Narkiewicz <hello@ezaquarii.com>
* @author Chris Narkiewicz * SPDX-FileCopyrightText: 2018 Tobias Kaminsky
* * SPDX-FileCopyrightText: 2018 Nextcloud GmbH
* Copyright (C) 2018 Tobias Kaminsky * SPDX-License-Identifier: AGPL-3.0-or-later
* Copyright (C) 2018 Nextcloud GmbH.
* Copyright (C) 2019 Chris Narkiewicz <hello@ezaquarii.com>
*
* 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.activity package com.owncloud.android.ui.activity

View file

@ -1,29 +1,17 @@
/* /*
* ownCloud Android client application * Nextcloud - Android Client
*
* @author Bartek Przybylski
* @author David A. Velasco
* @author Chris Narkiewicz
* @author TSI-mc
*
* Copyright (C) 2011 Bartek Przybylski
* Copyright (C) 2016 ownCloud Inc.
* Copyright (C) 2016 Nextcloud
* 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/>.
* *
* SPDX-FileCopyrightText: 2023 Alper Ozturk <alper_ozturk@proton.me>
* SPDX-FileCopyrightText: 2023 TSI-mc
* SPDX-FileCopyrightText: 2022-2023 Álvaro Brey <alvaro@alvarobrey.com>
* SPDX-FileCopyrightText: 2017-2018 Tobias Kaminsky <tobias@kaminsky.me>
* SPDX-FileCopyrightText: 2019 Chris Narkiewicz <hello@ezaquarii.com>
* SPDX-FileCopyrightText: 2015-2017 Andy Scherzinger <info@andy-scherzinger.de>
* SPDX-FileCopyrightText: 2016 ownCloud Inc.
* SPDX-FileCopyrightText: 2014 jabarros <jabarros@solidgear.es>
* SPDX-FileCopyrightText: 2013 masensio <masensio@solidgear.es>
* SPDX-FileCopyrightText: 2011-2015 Bartosz Przybylski <bart.p.pl@gmail.com>
* 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;
@ -101,7 +89,6 @@ import androidx.core.content.res.ResourcesCompat;
/** /**
* An Activity that allows the user to change the application's settings. * An Activity that allows the user to change the application's settings.
* <p>
* It proxies the necessary calls via {@link androidx.appcompat.app.AppCompatDelegate} to be used with AppCompat. * It proxies the necessary calls via {@link androidx.appcompat.app.AppCompatDelegate} to be used with AppCompat.
*/ */
public class SettingsActivity extends PreferenceActivity public class SettingsActivity extends PreferenceActivity

View file

@ -1,15 +1,11 @@
/* /*
* Nextcloud Android client application * Nextcloud - Android Client
*
* @author Tobias Kaminsky
* @author Chris Narkiewicz
* Copyright (C) 2018 Tobias Kaminsky
* Copyright (C) 2018 Nextcloud
* Copyright (C) 2019 Chris Narkiewicz <hello@ezaquarii.com>
* *
* SPDX-FileCopyrightText: 2019 Chris Narkiewicz <hello@ezaquarii.com>
* SPDX-FileCopyrightText: 2018 Tobias Kaminsky <tobias@kaminsky.me>
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH
* SPDX-License-Identifier: AGPL-3.0-or-later * SPDX-License-Identifier: 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;

View file

@ -1,19 +1,14 @@
/* /*
* Nextcloud Android client application * Nextcloud - Android Client
*
* @author Mario Danic
* @author Andy Scherzinger
* @author Chris Narkiewicz <hello@ezaquarii.com>
* @author Chawki Chouib <chouibc@gmail.com>
* Copyright (C) 2017 Mario Danic
* Copyright (C) 2017 Andy Scherzinger
* Copyright (C) 2017 Nextcloud GmbH.
* Copyright (C) 2020 Chris Narkiewicz <hello@ezaquarii.com>
* Copyright (C) 2020 Chawki Chouib <chouibc@gmail.com>
* *
* SPDX-FileCopyrightText: 2017-2020 Andy Scherzinger <info@andy-scherzinger>
* SPDX-FileCopyrightText: 2020 Chris Narkiewicz <hello@ezaquarii.com>
* SPDX-FileCopyrightText: 2020 Chawki Chouib <chouibc@gmail.com>
* SPDX-FileCopyrightText: 2018 Tobias Kaminsky <tobias@kaminsky.me>
* SPDX-FileCopyrightText: 2017 Mario Danic <mario@lovelyhq.com>
* SPDX-FileCopyrightText: 2017 Nextcloud GmbH
* SPDX-License-Identifier: AGPL-3.0-or-later * SPDX-License-Identifier: AGPL-3.0-or-later
*/ */
package com.owncloud.android.ui.activity; package com.owncloud.android.ui.activity;
import android.graphics.drawable.Drawable; import android.graphics.drawable.Drawable;

View file

@ -1,17 +1,12 @@
/* /*
* Nextcloud Android client application * Nextcloud - Android Client
*
* @author Tobias Kaminsky
* @author Chris Narkiewicz <hello@ezaquarii.com>
* @author TSI-mc
* Copyright (C) 2018 Tobias Kaminsky
* Copyright (C) 2018 Nextcloud
* Copyright (C) 2020 Chris Narkiewicz <hello@ezaquarii.com>
* Copyright (C) 2023 TSI-mc
* *
* SPDX-FileCopyrightText: 2023 TSI-mc
* SPDX-FileCopyrightText: 2020 Chris Narkiewicz <hello@ezaquarii.com>
* SPDX-FileCopyrightText: 2018 Tobias Kaminsky <tobias@kaminsky.me>
* SPDX-FileCopyrightText: 2018 Nextcloud
* SPDX-License-Identifier: AGPL-3.0-or-later * SPDX-License-Identifier: AGPL-3.0-or-later
*/ */
package com.owncloud.android.ui.adapter; package com.owncloud.android.ui.adapter;
import android.accounts.AccountManager; import android.accounts.AccountManager;

View file

@ -1,24 +1,10 @@
/* /*
* Nextcloud Android client application * Nextcloud - Android Client
* *
* @author Álvaro Brey Vilas * SPDX-FileCopyrightText: 2022 Álvaro Brey Vilas
* Copyright (C) 2022 Álvaro Brey Vilas * SPDX-FileCopyrightText: 2022 Nextcloud GmbH
* Copyright (C) 2022 Nextcloud GmbH * 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.adapter package com.owncloud.android.ui.adapter
import com.owncloud.android.datamodel.OCFile import com.owncloud.android.datamodel.OCFile

View file

@ -1,28 +1,14 @@
/* /*
* Nextcloud Android client application * Nextcloud - Android Client
* *
* @author masensio * SPDX-FileCopyrightText: 2023 Alper Ozturk <alper_ozturk@proton.me>
* @author Andy Scherzinger * SPDX-FileCopyrightText: 2022 Álvaro Brey <alvaro@alvarobrey.com>
* @author Chris Narkiewicz <hello@ezaquarii.com> * SPDX-FileCopyrightText: 2017-2018 Tobias Kaminsky <tobias@kaminsky.me>
* * SPDX-FileCopyrightText: 2020 Chris Narkiewicz <hello@ezaquarii.com>
* Copyright (C) 2015 ownCloud GmbH * SPDX-FileCopyrightText: 2020 Nextcloud GmbH
* Copyright (C) 2018 Andy Scherzinger * SPDX-FileCopyrightText: 2015-2018 Andy Scherzinger <info@andy-scherzinger.de>
* Copyright (C) 2020 Chris Narkiewicz <hello@ezaquarii.com> * SPDX-License-Identifier: AGPL-3.0-or-later
* Copyright (C) 2020 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/>.
*/ */
package com.owncloud.android.ui.adapter; package com.owncloud.android.ui.adapter;
import android.annotation.SuppressLint; import android.annotation.SuppressLint;

View file

@ -1,17 +1,11 @@
/* /*
* ownCloud Android client application * Nextcloud - Android Client
* *
* Copyright (C) 2012 Bartek Przybylski Copyright (C) 2015 ownCloud Inc. * SPDX-FileCopyrightText: 2023 Alper Ozturk <alper_ozturk@proton.me>
* * SPDX-FileCopyrightText: 2020-2022 Tobias Kaminsky <tobias@kaminsky.me>
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public * SPDX-FileCopyrightText: 2015 ownCloud Inc.
* License version 2, as published by the Free Software Foundation. * SPDX-FileCopyrightText: 2012 Bartosz Przybylski <bart.p.pl@gmail.com>
* * 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.dialog package com.owncloud.android.ui.dialog

View file

@ -1,24 +1,12 @@
/* /*
* ownCloud Android client application * Nextcloud - Android Client
*
* @author Bartek Przybylski
* Copyright (C) 2012 Bartek Przybylski
* 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: 2020-2022 Tobias Kaminsky <tobias@kaminsky.me>
* SPDX-FileCopyrightText: 2015 ownCloud Inc.
* SPDX-FileCopyrightText: 2012 Bartosz Przybylski <bart.p.pl@gmail.com>
* SPDX-License-Identifier: GPL-2.0-only AND AGPL-3.0-or-later
*/ */
package com.owncloud.android.ui.dialog; package com.owncloud.android.ui.dialog;
import android.app.Dialog; import android.app.Dialog;
@ -58,7 +46,6 @@ import androidx.fragment.app.DialogFragment;
import androidx.fragment.app.Fragment; import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentTransaction; import androidx.fragment.app.FragmentTransaction;
/** /**
* Dialog which will be displayed to user upon keep-in-sync file conflict. * Dialog which will be displayed to user upon keep-in-sync file conflict.
*/ */

View file

@ -1,22 +1,14 @@
/* /*
* ownCloud Android client application * Nextcloud - Android Client
* *
* @author David A. Velasco * SPDX-FileCopyrightText: 2023 Alper Ozturk <alper_ozturk@proton.me>
* Copyright (C) 2015 ownCloud Inc. * SPDX-FileCopyrightText: 2018 Andy Scherzinger <info@andy-scherzinger.de>
* * SPDX-FileCopyrightText: 2018 Jessie Chatham Spencer <jessie@teainspace.com>
* This program is free software: you can redistribute it and/or modify * SPDX-FileCopyrightText: 2016-2022 Tobias Kaminsky <tobias@kaminsky.me>
* it under the terms of the GNU General Public License version 2, * SPDX-FileCopyrightText: 2015 ownCloud Inc.
* as published by the Free Software Foundation. * SPDX-FileCopyrightText: 2015 David A. Velasco <dvelasco@solidgear.es>
* * 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.dialog; package com.owncloud.android.ui.dialog;
import android.app.Dialog; import android.app.Dialog;
@ -38,7 +30,6 @@ import androidx.appcompat.app.AlertDialog;
/** /**
* Dialog requiring confirmation before removing a collection of given OCFiles. * Dialog requiring confirmation before removing a collection of given OCFiles.
* <p>
* Triggers the removal according to the user response. * Triggers the removal according to the user response.
*/ */
public class RemoveFilesDialogFragment extends ConfirmationDialogFragment implements public class RemoveFilesDialogFragment extends ConfirmationDialogFragment implements

View file

@ -1,31 +1,15 @@
/* /*
* ownCloud Android client application * Nextcloud - Android Client
*
* @author David A. Velasco
* 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/>.
* *
* SPDX-FileCopyrightText: 2023 Alper Ozturk <alper_ozturk@proton.me>
* SPDX-FileCopyrightText: 2022 Andy Scherzinger <info@andy-scherzinger.de>
* SPDX-FileCopyrightText: 2017-2022 Tobias Kaminsky <tobias@kaminsky.me>
* SPDX-FileCopyrightText: 2014 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.dialog; package com.owncloud.android.ui.dialog;
/*
* Dialog to input a new name for an {@link OCFile} being renamed.
*
* Triggers the rename operation.
*/
import android.app.Dialog; import android.app.Dialog;
import android.content.DialogInterface; import android.content.DialogInterface;
import android.os.Bundle; import android.os.Bundle;
@ -59,11 +43,9 @@ import androidx.annotation.NonNull;
import androidx.appcompat.app.AlertDialog; import androidx.appcompat.app.AlertDialog;
import androidx.fragment.app.DialogFragment; import androidx.fragment.app.DialogFragment;
/** /**
* Dialog to input a new name for a file or folder to rename. * Dialog to input a new name for an {@link OCFile} being renamed.
* <p> * Triggers the rename operation.
* Triggers the rename operation when name is confirmed.
*/ */
public class RenameFileDialogFragment public class RenameFileDialogFragment
extends DialogFragment implements DialogInterface.OnClickListener, TextWatcher, Injectable { extends DialogFragment implements DialogInterface.OnClickListener, TextWatcher, Injectable {

View file

@ -1,23 +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: 2017-2018 Andy Scherzinger <info@andy-scherzinger.de>
* SPDX-FileCopyrightText: 2017-2018 Tobias Kaminsky <tobias@kaminsky.me>
* SPDX-FileCopyrightText: 2015 ownCloud Inc.
* SPDX-FileCopyrightText: 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.dialog; package com.owncloud.android.ui.dialog;
import android.app.Dialog; import android.app.Dialog;

View file

@ -1,22 +1,14 @@
/** /*
* ownCloud Android client application * Nextcloud - Android Client
*
* @author masensio
* @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: 2018-2022 Andy Scherzinger <info@andy-scherzinger.de>
* SPDX-FileCopyrightText: 2020 Stefan Niedermann <info@niedermann.it>
* SPDX-FileCopyrightText: 2018 Tobias Kaminsky <tobias@kaminsky.me>
* SPDX-FileCopyrightText: 2015 ownCloud Inc.
* SPDX-FileCopyrightText: 2014 David A. Velasco <dvelasco@solidgear.es>
* SPDX-FileCopyrightText: 2014 Masensio <masensio@solidgear.es>
* SPDX-License-Identifier: GPL-2.0-only AND AGPL-3.0-or-later
*/ */
package com.owncloud.android.ui.dialog; package com.owncloud.android.ui.dialog;
@ -53,11 +45,9 @@ import androidx.annotation.NonNull;
import androidx.fragment.app.DialogFragment; import androidx.fragment.app.DialogFragment;
/** /**
* Dialog to show information about an untrusted certificate and allow the user * Dialog to show information about an untrusted certificate and allow the user to decide trust on it or not.
* to decide trust on it or not. * Abstract implementation of common functionality for different dialogs that get the information about the error and
* * the certificate from different classes.
* Abstract implementation of common functionality for different dialogs that
* get the information about the error and the certificate from different classes.
*/ */
public class SslUntrustedCertDialog extends DialogFragment implements Injectable { public class SslUntrustedCertDialog extends DialogFragment implements Injectable {

View file

@ -1,22 +1,10 @@
/** /*
* 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: 2015 ownCloud Inc.
* SPDX-FileCopyrightText: 2013 David A. Velasco <dvelasco@solidgear.es>
* SPDX-License-Identifier: GPL-2.0-only
*/ */
package com.owncloud.android.ui.dialog; package com.owncloud.android.ui.dialog;
import android.content.Context; import android.content.Context;
@ -37,6 +25,4 @@ public class SsoWebView extends WebView {
public boolean onCheckIsTextEditor () { public boolean onCheckIsTextEditor () {
return false; return false;
} }
} }

View file

@ -1,22 +1,9 @@
/* /*
* Nextcloud Android client application * Nextcloud - Android Client
* *
* @author Álvaro Brey Vilas * SPDX-FileCopyrightText: 2022 Álvaro Brey Vilas
* Copyright (C) 2022 Álvaro Brey Vilas * SPDX-FileCopyrightText: 2022 Nextcloud GmbH
* Copyright (C) 2022 Nextcloud GmbH * 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.dialog package com.owncloud.android.ui.dialog

View file

@ -1,22 +1,9 @@
/* /*
* Nextcloud Android client application * Nextcloud - Android Client
* *
* @author Álvaro Brey Vilas * SPDX-FileCopyrightText: 2022 Álvaro Brey Vilas
* Copyright (C) 2022 Álvaro Brey Vilas * SPDX-FileCopyrightText: 2022 Nextcloud GmbH
* Copyright (C) 2022 Nextcloud GmbH * 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.events package com.owncloud.android.ui.events

View file

@ -1,15 +1,10 @@
/* /*
* Nextcloud Android client application * Nextcloud - Android Client
*
* @author Andy Scherzinger
* @author Chris Narkiewicz
*
* Copyright (C) 2018 Andy Scherzinger
* Copyright (C) 2019 Chris Narkiewicz <hello@ezaquarii.com>
* *
* SPDX-FileCopyrightText: 2019 Chris Narkiewicz <hello@ezaquarii.com>
* SPDX-FileCopyrightText: 2018 Andy Scherzinger <info@andy-scherzinger.de>
* SPDX-License-Identifier: AGPL-3.0-or-later * SPDX-License-Identifier: AGPL-3.0-or-later
*/ */
package com.owncloud.android.ui.fragment; package com.owncloud.android.ui.fragment;
import android.content.ContentResolver; import android.content.ContentResolver;

View file

@ -1,28 +1,16 @@
/* /*
* ownCloud Android client application * Nextcloud - Android Client
* *
* @author Bartek Przybylski * SPDX-FileCopyrightText: 2023 TSI-mc
* @author masensio * SPDX-FileCopyrightText: 2018-2023 Tobias Kaminsky <tobias@kaminsky.me>
* @author David A. Velasco * SPDX-FileCopyrightText: 2022 Álvaro Brey <alvaro@alvarobrey.com>
* @author Andy Scherzinger * SPDX-FileCopyrightText: 2020 Joris Bodin <joris.bodin@infomaniak.com>
* @author Chris Narkiewicz * SPDX-FileCopyrightText: 2019 Chris Narkiewicz <hello@ezaquarii.com>
* @author TSI-mc * SPDX-FileCopyrightText: 2016-2018 Andy Scherzinger <info@andy-scherzinger.de>
* Copyright (C) 2011 Bartek Przybylski * SPDX-FileCopyrightText: 2015 ownCloud Inc.
* Copyright (C) 2016 ownCloud Inc. * SPDX-FileCopyrightText: 2015 David A. Velasco <dvelasco@solidgear.es>
* Copyright (C) 2018 Andy Scherzinger * SPDX-FileCopyrightText: 2011-2012 Bartosz Przybylski
* Copyright (C) 2023 TSI-mc * SPDX-License-Identifier: GPL-2.0-only AND 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.fragment; package com.owncloud.android.ui.fragment;

View file

@ -1,22 +1,9 @@
/* /*
* Nextcloud Android client application * Nextcloud - Android Client
* *
* @author Álvaro Brey Vilas * SPDX-FileCopyrightText: 2022 Álvaro Brey Vilas <alvaro@alvarobrey.com>
* Copyright (C) 2022 Álvaro Brey Vilas * SPDX-FileCopyrightText: 2022 Nextcloud GmbH
* Copyright (C) 2022 Nextcloud GmbH * 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.fragment package com.owncloud.android.ui.fragment

View file

@ -1,20 +1,9 @@
/** /*
* 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: 2016 ownCloud Inc.
* SPDX-FileCopyrightText: 2016 David A. Velasco <dvelasco@owncloud.com>
* SPDX-License-Identifier: GPL-2.0-only
*/ */
package com.owncloud.android.ui.fragment; package com.owncloud.android.ui.fragment;

View file

@ -1,30 +1,10 @@
/* /*
* Nextcloud Android Library is available under MIT license * Nextcloud - Android Client
* *
* @author Álvaro Brey Vilas * SPDX-FileCopyrightText: 2022 Álvaro Brey Vilas
* Copyright (C) 2022 Álvaro Brey Vilas * SPDX-FileCopyrightText: 2022 Nextcloud GmbH
* Copyright (C) 2022 Nextcloud GmbH * SPDX-License-Identifier: MIT
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/ */
package com.owncloud.android.ui.fragment.util package com.owncloud.android.ui.fragment.util
import android.graphics.Canvas import android.graphics.Canvas

View file

@ -1,31 +1,16 @@
/* /*
* ownCloud Android client application * Nextcloud - Android Client
* *
* @author masensio * SPDX-FileCopyrightText: 2023 TSI-mc
* @author David A. Velasco * SPDX-FileCopyrightText: 2020 Chris Narkiewicz <hello@ezaquarii.com>
* @author Juan Carlos González Cabrero * SPDX-FileCopyrightText: 2018-2020 Tobias Kaminsky <tobias@kaminsky.me>
* @author Andy Scherzinger * SPDX-FileCopyrightText: 2018-2020 Andy Scherzinger <info@andy-scherzinger.de>
* @author Chris Narkiewicz * SPDX-FileCopyrightText: 2016 Atsushi Matsuo <matsuo@dds.co.jp>
* @author TSI-mc * SPDX-FileCopyrightText: 2015 ownCloud Inc.
* * SPDX-FileCopyrightText: 2014 masensio <masensio@solidgear.es>
* Copyright (C) 2015 ownCloud Inc. * SPDX-FileCopyrightText: 2014 David A. Velasco <dvelasco@solidgear.es>
* Copyright (C) 2018 Andy Scherzinger * SPDX-License-Identifier: GPL-2.0-only AND AGPL-3.0-or-later
* Copyright (C) 2020 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.helpers; package com.owncloud.android.ui.helpers;
import android.Manifest; import android.Manifest;

View file

@ -1,23 +1,10 @@
/** /*
* ownCloud Android client application * Nextcloud - Android Client
*
* @author David A. Velasco
* 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: 2016 David A. Velasco <dvelasco@owncloud.com>
* SPDX-FileCopyrightText: 2016 ownCloud GmbH
* SPDX-License-Identifier: GPL-2.0-only
*/ */
package com.owncloud.android.ui.helpers; package com.owncloud.android.ui.helpers;
import android.os.Parcel; import android.os.Parcel;
@ -25,7 +12,7 @@ import android.os.Parcelable;
import android.util.SparseBooleanArray; import android.util.SparseBooleanArray;
/** /**
* Wraps a SparseBooleanArrayParcelable to allow its serialization and desearialization * Wraps a SparseBooleanArrayParcelable to allow its serialization and de-searialization
* through {@link Parcelable} interface. * through {@link Parcelable} interface.
*/ */
public class SparseBooleanArrayParcelable implements Parcelable { public class SparseBooleanArrayParcelable implements Parcelable {

View file

@ -1,24 +1,10 @@
/* /*
* Nextcloud Android client application * Nextcloud - Android Client
* *
* @author Álvaro Brey Vilas * SPDX-FileCopyrightText: 2022 Álvaro Brey Vilas <alvaro@alvarobrey.com>
* Copyright (C) 2022 Álvaro Brey Vilas * SPDX-FileCopyrightText: 2022 Nextcloud GmbH
* Copyright (C) 2022 Nextcloud GmbH * 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.preview package com.owncloud.android.ui.preview
import android.graphics.BitmapFactory import android.graphics.BitmapFactory

View file

@ -1,24 +1,15 @@
/* /*
* ownCloud Android client application * Nextcloud - Android Client
*
* @author David A. Velasco
* @author Chris Narkiewicz
*
* Copyright (C) 2016 ownCloud Inc.
* Copyright (C) 2019 Chris Narkiewicz <hello@ezaquarii.com>
*
* 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 hd 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-2024 Andy Scherzinger <info@andy-scherzinger.de>
* SPDX-FileCopyrightText: 2023 Alper Ozturk <alper_ozturk@proton.me>
* SPDX-FileCopyrightText: 2022 Álvaro Brey <alvaro@alvarobrey.com>
* SPDX-FileCopyrightText: 2019 Tobias Kaminsky <tobias@kaminsky.me>
* SPDX-FileCopyrightText: 2019 Chris Narkiewicz <hello@ezaquarii.com>
* SPDX-FileCopyrightText: 2016 ownCloud Inc.
* SPDX-FileCopyrightText: 2015 masensio <masensio@solidgear.es>
* 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;
@ -71,9 +62,8 @@ import androidx.localbroadcastmanager.content.LocalBroadcastManager;
import androidx.viewpager.widget.ViewPager; import androidx.viewpager.widget.ViewPager;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
/** /**
* Holds a swiping galley where image files contained in an Nextcloud directory are shown * Holds a swiping gallery where image files contained in an Nextcloud directory are shown.
*/ */
@SuppressWarnings("PMD.AvoidDuplicateLiterals") @SuppressWarnings("PMD.AvoidDuplicateLiterals")
public class PreviewImageActivity extends FileActivity implements public class PreviewImageActivity extends FileActivity implements
@ -87,16 +77,15 @@ public class PreviewImageActivity extends FileActivity implements
private static final String KEY_WAITING_FOR_BINDER = "WAITING_FOR_BINDER"; private static final String KEY_WAITING_FOR_BINDER = "WAITING_FOR_BINDER";
private static final String KEY_SYSTEM_VISIBLE = "TRUE"; private static final String KEY_SYSTEM_VISIBLE = "TRUE";
private OCFile livePhotoFile; private OCFile livePhotoFile;
private ViewPager mViewPager; private ViewPager viewPager;
private PreviewImagePagerAdapter mPreviewImagePagerAdapter; private PreviewImagePagerAdapter previewImagePagerAdapter;
private int mSavedPosition; private int savedPosition;
private boolean mHasSavedPosition; private boolean hasSavedPosition;
private boolean mRequestWaitingForBinder; private boolean requestWaitingForBinder;
private DownloadFinishReceiver mDownloadFinishReceiver; private DownloadFinishReceiver downloadFinishReceiver;
private UploadFinishReceiver mUploadFinishReceiver; private UploadFinishReceiver uploadFinishReceiver;
private View mFullScreenAnchorView; private View fullScreenAnchorView;
private boolean isDownloadWorkStarted = false; private boolean isDownloadWorkStarted = false;
@Inject AppPreferences preferences; @Inject AppPreferences preferences;
@ -137,14 +126,14 @@ public class PreviewImageActivity extends FileActivity implements
actionBar.setDisplayHomeAsUpEnabled(true); actionBar.setDisplayHomeAsUpEnabled(true);
} }
mFullScreenAnchorView = getWindow().getDecorView(); fullScreenAnchorView = getWindow().getDecorView();
// to keep our UI controls visibility in line with system bars visibility // to keep our UI controls visibility in line with system bars visibility
setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED); setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED);
if (savedInstanceState != null) { if (savedInstanceState != null) {
mRequestWaitingForBinder = savedInstanceState.getBoolean(KEY_WAITING_FOR_BINDER); requestWaitingForBinder = savedInstanceState.getBoolean(KEY_WAITING_FOR_BINDER);
} else { } else {
mRequestWaitingForBinder = false; requestWaitingForBinder = false;
} }
observeWorkerState(); observeWorkerState();
@ -168,10 +157,10 @@ public class PreviewImageActivity extends FileActivity implements
if (virtualFolderType != null && virtualFolderType != VirtualFolderType.NONE) { if (virtualFolderType != null && virtualFolderType != VirtualFolderType.NONE) {
VirtualFolderType type = (VirtualFolderType) virtualFolderType; VirtualFolderType type = (VirtualFolderType) virtualFolderType;
mPreviewImagePagerAdapter = new PreviewImagePagerAdapter(getSupportFragmentManager(), previewImagePagerAdapter = new PreviewImagePagerAdapter(getSupportFragmentManager(),
type, type,
user, user,
getStorageManager()); getStorageManager());
} else { } else {
// get parent from path // get parent from path
OCFile parentFolder = getStorageManager().getFileById(getFile().getParentId()); OCFile parentFolder = getStorageManager().getFileById(getFile().getParentId());
@ -181,7 +170,7 @@ public class PreviewImageActivity extends FileActivity implements
parentFolder = getStorageManager().getFileByPath(OCFile.ROOT_PATH); parentFolder = getStorageManager().getFileByPath(OCFile.ROOT_PATH);
} }
mPreviewImagePagerAdapter = new PreviewImagePagerAdapter( previewImagePagerAdapter = new PreviewImagePagerAdapter(
getSupportFragmentManager(), getSupportFragmentManager(),
livePhotoFile, livePhotoFile,
parentFolder, parentFolder,
@ -192,19 +181,19 @@ public class PreviewImageActivity extends FileActivity implements
); );
} }
mViewPager = findViewById(R.id.fragmentPager); viewPager = findViewById(R.id.fragmentPager);
int position = mHasSavedPosition ? mSavedPosition : mPreviewImagePagerAdapter.getFilePosition(getFile()); int position = hasSavedPosition ? savedPosition : previewImagePagerAdapter.getFilePosition(getFile());
position = position >= 0 ? position : 0; position = position >= 0 ? position : 0;
mViewPager.setAdapter(mPreviewImagePagerAdapter); viewPager.setAdapter(previewImagePagerAdapter);
mViewPager.addOnPageChangeListener(this); viewPager.addOnPageChangeListener(this);
mViewPager.setCurrentItem(position); viewPager.setCurrentItem(position);
if (position == 0 && !getFile().isDown()) { if (position == 0 && !getFile().isDown()) {
// this is necessary because mViewPager.setCurrentItem(0) just after setting the // this is necessary because mViewPager.setCurrentItem(0) just after setting the
// adapter does not result in a call to #onPageSelected(0) // adapter does not result in a call to #onPageSelected(0)
mRequestWaitingForBinder = true; requestWaitingForBinder = true;
} }
} }
@ -272,7 +261,7 @@ public class PreviewImageActivity extends FileActivity implements
@Override @Override
protected void onSaveInstanceState(@NonNull Bundle outState) { protected void onSaveInstanceState(@NonNull Bundle outState) {
super.onSaveInstanceState(outState); super.onSaveInstanceState(outState);
outState.putBoolean(KEY_WAITING_FOR_BINDER, mRequestWaitingForBinder); outState.putBoolean(KEY_WAITING_FOR_BINDER, requestWaitingForBinder);
outState.putBoolean(KEY_SYSTEM_VISIBLE, isSystemUIVisible()); outState.putBoolean(KEY_SYSTEM_VISIBLE, isSystemUIVisible());
} }
@ -283,9 +272,9 @@ public class PreviewImageActivity extends FileActivity implements
if (operation instanceof RemoveFileOperation) { if (operation instanceof RemoveFileOperation) {
// initialize the pager with the new file list // initialize the pager with the new file list
initViewPager(getUser().get()); initViewPager(getUser().get());
if (mViewPager.getAdapter().getCount() > 0) { if (viewPager.getAdapter().getCount() > 0) {
// Trigger page reselection, to update the title // Trigger page reselection, to update the title
onPageSelected(mViewPager.getCurrentItem()); onPageSelected(viewPager.getCurrentItem());
} else { } else {
// Last file has been deleted, so finish the activity // Last file has been deleted, so finish the activity
finish(); finish();
@ -307,11 +296,11 @@ public class PreviewImageActivity extends FileActivity implements
Log_OC.d(TAG, "Download worker started"); Log_OC.d(TAG, "Download worker started");
isDownloadWorkStarted = true; isDownloadWorkStarted = true;
if (mRequestWaitingForBinder) { if (requestWaitingForBinder) {
mRequestWaitingForBinder = false; requestWaitingForBinder = false;
Log_OC.d(TAG, "Simulating reselection of current page after connection " + Log_OC.d(TAG, "Simulating reselection of current page after connection " +
"of download binder"); "of download binder");
onPageSelected(mViewPager.getCurrentItem()); onPageSelected(viewPager.getCurrentItem());
} }
} else { } else {
Log_OC.d(TAG, "Download worker stopped"); Log_OC.d(TAG, "Download worker stopped");
@ -334,13 +323,13 @@ public class PreviewImageActivity extends FileActivity implements
protected void onResume() { protected void onResume() {
super.onResume(); super.onResume();
mDownloadFinishReceiver = new DownloadFinishReceiver(); downloadFinishReceiver = new DownloadFinishReceiver();
IntentFilter downloadIntentFilter = new IntentFilter(FileDownloadWorker.Companion.getDownloadFinishMessage()); IntentFilter downloadIntentFilter = new IntentFilter(FileDownloadWorker.Companion.getDownloadFinishMessage());
localBroadcastManager.registerReceiver(mDownloadFinishReceiver, downloadIntentFilter); localBroadcastManager.registerReceiver(downloadFinishReceiver, downloadIntentFilter);
mUploadFinishReceiver = new UploadFinishReceiver(); uploadFinishReceiver = new UploadFinishReceiver();
IntentFilter uploadIntentFilter = new IntentFilter(FileUploadWorker.Companion.getUploadFinishMessage()); IntentFilter uploadIntentFilter = new IntentFilter(FileUploadWorker.Companion.getUploadFinishMessage());
localBroadcastManager.registerReceiver(mUploadFinishReceiver, uploadIntentFilter); localBroadcastManager.registerReceiver(uploadFinishReceiver, uploadIntentFilter);
} }
@Override @Override
@ -350,9 +339,9 @@ public class PreviewImageActivity extends FileActivity implements
@Override @Override
public void onPause() { public void onPause() {
if (mDownloadFinishReceiver != null){ if (downloadFinishReceiver != null){
localBroadcastManager.unregisterReceiver(mDownloadFinishReceiver); localBroadcastManager.unregisterReceiver(downloadFinishReceiver);
mDownloadFinishReceiver = null; downloadFinishReceiver = null;
} }
super.onPause(); super.onPause();
@ -396,12 +385,12 @@ public class PreviewImageActivity extends FileActivity implements
*/ */
@Override @Override
public void onPageSelected(int position) { public void onPageSelected(int position) {
mSavedPosition = position; savedPosition = position;
mHasSavedPosition = true; hasSavedPosition = true;
if (!isDownloadWorkStarted) { if (!isDownloadWorkStarted) {
mRequestWaitingForBinder = true; requestWaitingForBinder = true;
} else { } else {
OCFile currentFile = mPreviewImagePagerAdapter.getFileAt(position); OCFile currentFile = previewImagePagerAdapter.getFileAt(position);
if (currentFile != null) { if (currentFile != null) {
if (getSupportActionBar() != null) { if (getSupportActionBar() != null) {
@ -410,7 +399,7 @@ public class PreviewImageActivity extends FileActivity implements
setDrawerIndicatorEnabled(false); setDrawerIndicatorEnabled(false);
if (currentFile.isEncrypted() && !currentFile.isDown() && if (currentFile.isEncrypted() && !currentFile.isDown() &&
!mPreviewImagePagerAdapter.pendingErrorAt(position)) { !previewImagePagerAdapter.pendingErrorAt(position)) {
requestForDownload(currentFile); requestForDownload(currentFile);
} }
@ -479,20 +468,20 @@ public class PreviewImageActivity extends FileActivity implements
if (EditImageActivity.OPEN_IMAGE_EDITOR.equals(downloadBehaviour)) { if (EditImageActivity.OPEN_IMAGE_EDITOR.equals(downloadBehaviour)) {
startImageEditor(file); startImageEditor(file);
} else { } else {
int position = mPreviewImagePagerAdapter.getFilePosition(file); int position = previewImagePagerAdapter.getFilePosition(file);
if (position >= 0) { if (position >= 0) {
if (downloadWasFine) { if (downloadWasFine) {
mPreviewImagePagerAdapter.updateFile(position, file); previewImagePagerAdapter.updateFile(position, file);
} else { } else {
mPreviewImagePagerAdapter.updateWithDownloadError(position); previewImagePagerAdapter.updateWithDownloadError(position);
} }
mPreviewImagePagerAdapter.notifyDataSetChanged(); // will trigger the creation of new fragments previewImagePagerAdapter.notifyDataSetChanged(); // will trigger the creation of new fragments
} else if (downloadWasFine) { } else if (downloadWasFine) {
initViewPager(getUser().get()); initViewPager(getUser().get());
int newPosition = mPreviewImagePagerAdapter.getFilePosition(file); int newPosition = previewImagePagerAdapter.getFilePosition(file);
if (newPosition >= 0) { if (newPosition >= 0) {
mViewPager.setCurrentItem(newPosition); viewPager.setCurrentItem(newPosition);
} }
} }
} }
@ -504,22 +493,22 @@ public class PreviewImageActivity extends FileActivity implements
} }
public void toggleFullScreen() { public void toggleFullScreen() {
boolean visible = (mFullScreenAnchorView.getSystemUiVisibility() boolean visible = (fullScreenAnchorView.getSystemUiVisibility()
& View.SYSTEM_UI_FLAG_HIDE_NAVIGATION) == 0; & View.SYSTEM_UI_FLAG_HIDE_NAVIGATION) == 0;
if (visible) { if (visible) {
hideSystemUI(mFullScreenAnchorView); hideSystemUI(fullScreenAnchorView);
// actionBar.hide(); // propagated through // actionBar.hide(); // propagated through
// OnSystemUiVisibilityChangeListener() // OnSystemUiVisibilityChangeListener()
} else { } else {
showSystemUI(mFullScreenAnchorView); showSystemUI(fullScreenAnchorView);
// actionBar.show(); // propagated through // actionBar.show(); // propagated through
// OnSystemUiVisibilityChangeListener() // OnSystemUiVisibilityChangeListener()
} }
} }
public void switchToFullScreen() { public void switchToFullScreen() {
hideSystemUI(mFullScreenAnchorView); hideSystemUI(fullScreenAnchorView);
} }
public void startImageEditor(OCFile file) { public void startImageEditor(OCFile file) {

View file

@ -1,23 +1,14 @@
/* /*
* ownCloud Android client application * Nextcloud - Android Client
* *
* @author David A. Velasco * SPDX-FileCopyrightText: 2020-2024 Andy Scherzinger <info@andy-scherzinger.de>
* @author Chris Narkiewicz * SPDX-FileCopyrightText: 2023 Alper Ozturk <alper_ozturk@proton.me>
* * SPDX-FileCopyrightText: 2022 Álvaro Brey <alvaro@alvarobrey.com>
* Copyright (C) 2015 ownCloud Inc. * SPDX-FileCopyrightText: 2017-2020 Tobias Kaminsky <tobias@kaminsky.me>
* Copyright (C) 2019 Chris Narkiewicz <hello@ezaquarii.com> * SPDX-FileCopyrightText: 2019 Chris Narkiewicz <hello@ezaquarii.com>
* * SPDX-FileCopyrightText: 2015 ownCloud Inc.
* This program is free software: you can redistribute it and/or modify * SPDX-FileCopyrightText: 2013-2015 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.preview; package com.owncloud.android.ui.preview;
@ -95,12 +86,9 @@ import pl.droidsonroids.gif.GifDrawable;
import static com.owncloud.android.datamodel.ThumbnailsCacheManager.PREFIX_THUMBNAIL; import static com.owncloud.android.datamodel.ThumbnailsCacheManager.PREFIX_THUMBNAIL;
/** /**
* This fragment shows a preview of a downloaded image. * This fragment shows a preview of a downloaded image.
* <p>
* Trying to get an instance with a NULL {@link OCFile} will produce an {@link IllegalStateException}. * Trying to get an instance with a NULL {@link OCFile} will produce an {@link IllegalStateException}.
* <p>
* If the {@link OCFile} passed is not downloaded, an {@link IllegalStateException} is generated on instantiation too. * If the {@link OCFile} passed is not downloaded, an {@link IllegalStateException} is generated on instantiation too.
*/ */
public class PreviewImageFragment extends FileFragment implements Injectable { public class PreviewImageFragment extends FileFragment implements Injectable {

View file

@ -1,24 +1,10 @@
/* /*
* Nextcloud Android client application * Nextcloud - Android Client
* *
* @author Álvaro Brey Vilas * SPDX-FileCopyrightText: 2022 Álvaro Brey Vilas <alvaro@alvarobrey.com>
* Copyright (C) 2022 Álvaro Brey Vilas * SPDX-FileCopyrightText: 2022 Nextcloud GmbH
* Copyright (C) 2022 Nextcloud GmbH * 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.preview.pdf package com.owncloud.android.ui.preview.pdf
import android.graphics.Bitmap import android.graphics.Bitmap

View file

@ -1,24 +1,10 @@
/* /*
* Nextcloud Android client application * Nextcloud - Android Client
* *
* @author Álvaro Brey Vilas * SPDX-FileCopyrightText: 2022 Álvaro Brey Vilas <alvaro@alvarobrey.com>
* Copyright (C) 2022 Álvaro Brey Vilas * SPDX-FileCopyrightText: 2022 Nextcloud GmbH
* Copyright (C) 2022 Nextcloud GmbH * 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.preview.pdf package com.owncloud.android.ui.preview.pdf
import android.content.Intent import android.content.Intent

View file

@ -1,24 +1,10 @@
/* /*
* Nextcloud Android client application * Nextcloud - Android Client
* *
* @author Álvaro Brey Vilas * SPDX-FileCopyrightText: 2022 Álvaro Brey Vilas <alvaro@alvarobrey.com>
* Copyright (C) 2022 Álvaro Brey Vilas * SPDX-FileCopyrightText: 2022 Nextcloud GmbH
* Copyright (C) 2022 Nextcloud GmbH * 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.preview.pdf package com.owncloud.android.ui.preview.pdf
import android.graphics.Bitmap import android.graphics.Bitmap

View file

@ -1,25 +1,10 @@
/* /*
* Nextcloud Android client application * Nextcloud - Android Client
* *
* @author Tobias Kaminsky * SPDX-FileCopyrightText: 2019 Chris Narkiewicz <hello@ezaquarii.com>
* @author Chris Narkiewicz * SPDX-FileCopyrightText: 2018 Tobias Kaminsky <tobias@kaminsky.me>
* * SPDX-FileCopyrightText: 2018 Nextcloud GmbH
* Copyright (C) 2018 Tobias Kaminsky * SPDX-License-Identifier: AGPL-3.0-or-later
* Copyright (C) 2018 Nextcloud GmbH.
* Copyright (C) 2019 Chris Narkiewicz <hello@ezaquarii.com>
*
* 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.trashbin package com.owncloud.android.ui.trashbin

View file

@ -1,7 +1,7 @@
<!-- <!--
~ Nextcloud - Android Client ~ Nextcloud - Android Client
~ ~
~ SPDX-FileCopyrightText: 2022 Álvaro Brey <alvaro.brey@nextcloud.com> ~ SPDX-FileCopyrightText: 2022 Álvaro Brey <alvaro@alvarobrey.com>
~ SPDX-FileCopyrightText: 2022 Nextcloud GmbH ~ SPDX-FileCopyrightText: 2022 Nextcloud GmbH
~ SPDX-License-Identifier: AGPL-3.0-or-later ~ SPDX-License-Identifier: AGPL-3.0-or-later
--> -->

View file

@ -4,7 +4,7 @@
~ ~
~ SPDX-FileCopyrightText: 2023 Alper Ozturk <alper_ozturk@proton.me> ~ SPDX-FileCopyrightText: 2023 Alper Ozturk <alper_ozturk@proton.me>
~ SPDX-FileCopyrightText: 2018-2022 Tobias Kaminsky <tobias@kaminsky.me> ~ SPDX-FileCopyrightText: 2018-2022 Tobias Kaminsky <tobias@kaminsky.me>
~ SPDX-FileCopyrightText: 2022 Álvaro Brey ~ SPDX-FileCopyrightText: 2022 Álvaro Brey <alvaro@alvarobrey.com>
~ SPDX-License-Identifier: AGPL-3.0-or-later ~ SPDX-License-Identifier: AGPL-3.0-or-later
--> -->
<LinearLayout <LinearLayout

View file

@ -1,26 +1,12 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- <!--
Nextcloud Android client application ~ Nextcloud Talk - Android Client
~
@author Tobias Kaminsky ~ SPDX-FileCopyrightText: 2018-2024 Nextcloud GmbH and Nextcloud contributors
@author TSI-mc ~ SPDX-FileCopyrightText: 2023 Andy Scherzinger <info@andy-scherzinger.de>
Copyright (C) 2023 Andy Scherzinger ~ SPDX-FileCopyrightText: 2023 TSI-mc
Copyright (C) 2023 TSI-mc ~ SPDX-FileCopyrightText: 2018 Tobias Kaminsky <tobias@kaminsky.me>
Copyright (C) 2018 Tobias Kaminsky ~ SPDX-License-Identifier: GPL-3.0-or-later AND AGPL-3.0-or-later
Copyright (C) 2018 Nextcloud GmbH
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/>.
--> -->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"

View file

@ -1,24 +1,11 @@
<?xml version="1.0" encoding="utf-8"?><!-- <?xml version="1.0" encoding="utf-8"?>
~ Nextcloud Android client application <!--
~ Nextcloud - Android Client
~ ~
~ @author Álvaro Brey Vilas ~ SPDX-FileCopyrightText: 2022 Álvaro Brey <alvaro@alvarobrey.com>
~ Copyright (C) 2022 Álvaro Brey Vilas ~ SPDX-FileCopyrightText: 2022 Nextcloud Gmbh
~ Copyright (C) 2022 Nextcloud GmbH ~ 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/>.
-->
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"

View file

@ -1,24 +1,11 @@
<?xml version="1.0" encoding="utf-8"?><!-- <?xml version="1.0" encoding="utf-8"?>
~ Nextcloud Android client application <!--
~ Nextcloud - Android Client
~ ~
~ @author Álvaro Brey Vilas ~ SPDX-FileCopyrightText: 2022 Álvaro Brey <alvaro@alvarobrey.com>
~ Copyright (C) 2022 Álvaro Brey Vilas ~ SPDX-FileCopyrightText: 2022 Nextcloud Gmbh
~ Copyright (C) 2022 Nextcloud GmbH ~ 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/>.
-->
<ImageView xmlns:android="http://schemas.android.com/apk/res/android" <ImageView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/page" android:id="@+id/page"
android:layout_width="match_parent" android:layout_width="match_parent"

View file

@ -45,12 +45,14 @@
<string name="assistant_screen_loading">Отримання переліку завдань, зачекайте</string> <string name="assistant_screen_loading">Отримання переліку завдань, зачекайте</string>
<string name="assistant_screen_no_task_available_for_all_task_filter_text">Відсутні завдання. Виберіть вид завдань для додавання нового завдання</string> <string name="assistant_screen_no_task_available_for_all_task_filter_text">Відсутні завдання. Виберіть вид завдань для додавання нового завдання</string>
<string name="assistant_screen_no_task_available_text">Відсутні завдання виду %s. Ви можете додати нове завдання праворуч внизу. </string> <string name="assistant_screen_no_task_available_text">Відсутні завдання виду %s. Ви можете додати нове завдання праворуч внизу. </string>
<string name="assistant_screen_running_task_text">В процесі</string>
<string name="assistant_screen_scheduled_task_status_text">Заплановано</string> <string name="assistant_screen_scheduled_task_status_text">Заплановано</string>
<string name="assistant_screen_successful_task_text">Виконано</string> <string name="assistant_screen_successful_task_text">Виконано</string>
<string name="assistant_screen_task_create_fail_message">Помилка під час додавання завдання</string> <string name="assistant_screen_task_create_fail_message">Помилка під час додавання завдання</string>
<string name="assistant_screen_task_create_success_message">Успішно додано завдання</string> <string name="assistant_screen_task_create_success_message">Успішно додано завдання</string>
<string name="assistant_screen_task_delete_fail_message">Помилка під час вилучення завдання</string> <string name="assistant_screen_task_delete_fail_message">Помилка під час вилучення завдання</string>
<string name="assistant_screen_task_delete_success_message">Завдання вилучено</string> <string name="assistant_screen_task_delete_success_message">Завдання вилучено</string>
<string name="assistant_screen_task_list_error_state_message">Неможливо отримати список завдань. Перевірте з\'єднання з мережею</string>
<string name="assistant_screen_task_more_actions_bottom_sheet_delete_action">Вилучити завдання</string> <string name="assistant_screen_task_more_actions_bottom_sheet_delete_action">Вилучити завдання</string>
<string name="assistant_screen_top_bar_title">Помічник</string> <string name="assistant_screen_top_bar_title">Помічник</string>
<string name="assistant_screen_unknown_task_status_text">Невідомо</string> <string name="assistant_screen_unknown_task_status_text">Невідомо</string>
@ -756,6 +758,7 @@
<string name="shared_icon_shared_via_link">доступ надано за посиланням</string> <string name="shared_icon_shared_via_link">доступ надано за посиланням</string>
<string name="shared_with_you_by">%1$s поділив(-ла-)ся з вами</string> <string name="shared_with_you_by">%1$s поділив(-ла-)ся з вами</string>
<string name="sharee_add_failed">Помилка додавання користувача, з яким ви хочете поділитися</string> <string name="sharee_add_failed">Помилка додавання користувача, з яким ви хочете поділитися</string>
<string name="sharee_already_added_to_file">Не вдалося поділитися цим ресурсом, оскільки він вже у спільному доступі з цим користувачем чи групою. </string>
<string name="show_images">Показувати зображення</string> <string name="show_images">Показувати зображення</string>
<string name="show_video">Показувати відео</string> <string name="show_video">Показувати відео</string>
<string name="signup_with_provider">Зареєструватися у провайдейра</string> <string name="signup_with_provider">Зареєструватися у провайдейра</string>
@ -993,9 +996,9 @@
<item quantity="other">Не вдалося синхронізувати %1$d файлів (конфлікти: %2$d)</item> <item quantity="other">Не вдалося синхронізувати %1$d файлів (конфлікти: %2$d)</item>
</plurals> </plurals>
<plurals name="sync_foreign_files_forgotten_content"> <plurals name="sync_foreign_files_forgotten_content">
<item quantity="one">Не вдалося скопіювати %1$d файл з теки %2$s до</item> <item quantity="one">Не вдалося скопіювати %1$d файл з каталогу %2$s до</item>
<item quantity="few">Не вдалося скопіювати %1$d файлів з теки %2$s до</item> <item quantity="few">Не вдалося скопіювати %1$d файли з каталогу %2$s до</item>
<item quantity="many">Не вдалося скопіювати %1$d файлів з теки %2$s до</item> <item quantity="many">Не вдалося скопіювати %1$d файлів з каталогу %2$s до</item>
<item quantity="other">Не вдалося скопіювати %1$d файлів з каталогу %2$s до</item> <item quantity="other">Не вдалося скопіювати %1$d файлів з каталогу %2$s до</item>
</plurals> </plurals>
<plurals name="wrote_n_events_to"> <plurals name="wrote_n_events_to">

View file

@ -45,6 +45,7 @@
<string name="assistant_screen_loading">未載入工作項目清單,請稍候</string> <string name="assistant_screen_loading">未載入工作項目清單,請稍候</string>
<string name="assistant_screen_no_task_available_for_all_task_filter_text">無可用的工作項目。選取工作項目類型以建立新工作項目。</string> <string name="assistant_screen_no_task_available_for_all_task_filter_text">無可用的工作項目。選取工作項目類型以建立新工作項目。</string>
<string name="assistant_screen_no_task_available_text">沒有可用於 %s 工作項目類型的工作項目,您可以從右下角建立新工作項目。</string> <string name="assistant_screen_no_task_available_text">沒有可用於 %s 工作項目類型的工作項目,您可以從右下角建立新工作項目。</string>
<string name="assistant_screen_running_task_text">進行中</string>
<string name="assistant_screen_scheduled_task_status_text">已安排</string> <string name="assistant_screen_scheduled_task_status_text">已安排</string>
<string name="assistant_screen_successful_task_text">已完成</string> <string name="assistant_screen_successful_task_text">已完成</string>
<string name="assistant_screen_task_create_fail_message">建立工作項目時發生錯誤</string> <string name="assistant_screen_task_create_fail_message">建立工作項目時發生錯誤</string>

View file

@ -1,24 +1,9 @@
/* /*
* Nextcloud Android client application * Nextcloud - Android Client
* *
* @author Chris Narkiewicz * SPDX-FileCopyrightText: 2020 Chris Narkiewicz <hello@ezaquarii.com>
* * SPDX-License-Identifier: AGPL-3.0-or-later
* Copyright (C) 2020 Chris Narkiewicz <hello@ezaquarii.com>
*
* 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.nextcloud.client.device package com.nextcloud.client.device
import android.annotation.SuppressLint import android.annotation.SuppressLint

View file

@ -1,24 +1,10 @@
/* /*
* Nextcloud Android client application * Nextcloud - Android Client
* *
* @author Álvaro Brey Vilas * SPDX-FileCopyrightText: 2022 Álvaro Brey <alvaro@alvarobrey.com>
* Copyright (C) 2022 Álvaro Brey Vilas * SPDX-FileCopyrightText: 2022 Nextcloud GmbH
* Copyright (C) 2022 Nextcloud GmbH * 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.adapter package com.owncloud.android.ui.adapter
import com.owncloud.android.lib.resources.shares.OCShare import com.owncloud.android.lib.resources.shares.OCShare

View file

@ -3,7 +3,7 @@
* *
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2024 Alper Ozturk <alper_ozturk@proton.me> * SPDX-FileCopyrightText: 2024 Alper Ozturk <alper_ozturk@proton.me>
* SPDX-FileCopyrightText: 2023 Álvaro Brey Vilas <alvaro.brey@nextcloud.com> * SPDX-FileCopyrightText: 2023 Álvaro Brey Vilas<alvaro@alvarobrey.com>
* SPDX-FileCopyrightText: 2023 Andy Scherzinger <info@andy-scherzinger.de> * SPDX-FileCopyrightText: 2023 Andy Scherzinger <info@andy-scherzinger.de>
* SPDX-License-Identifier: AGPL-3.0-or-later * SPDX-License-Identifier: AGPL-3.0-or-later
*/ */

View file

@ -4,7 +4,7 @@
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2024 Alper Ozturk <alper_ozturk@proton.me> * SPDX-FileCopyrightText: 2024 Alper Ozturk <alper_ozturk@proton.me>
* SPDX-FileCopyrightText: 2023 Tobias Kaminsky <tobias@kaminsky.me> * SPDX-FileCopyrightText: 2023 Tobias Kaminsky <tobias@kaminsky.me>
* SPDX-FileCopyrightText: 2022 Álvaro Brey Vilas <alvaro.brey@nextcloud.com> * SPDX-FileCopyrightText: 2022 Álvaro Brey Vilas<alvaro@alvarobrey.com>
* SPDX-FileCopyrightText: 2016 Andy Scherzinger <info@andy-scherzinger.de> * SPDX-FileCopyrightText: 2016 Andy Scherzinger <info@andy-scherzinger.de>
* SPDX-License-Identifier: AGPL-3.0-or-later * SPDX-License-Identifier: AGPL-3.0-or-later
*/ */

View file

@ -1,5 +1,5 @@
<!-- <!--
~ SPDX-FileCopyrightText: 2023 Álvaro Brey <alvaro.brey@nextcloud.com> ~ SPDX-FileCopyrightText: 2023 Álvaro Brey <alvaro@alvarobrey.com>
~ SPDX-License-Identifier: AGPL-3.0-or-later ~ SPDX-License-Identifier: AGPL-3.0-or-later
--> -->
This `src/` directory is only here for F-Droid, as it doesn't pick up per-flavor metadata in the app/ subdir. This `src/` directory is only here for F-Droid, as it doesn't pick up per-flavor metadata in the app/ subdir.