mirror of
https://github.com/nextcloud/notes-android.git
synced 2024-11-24 05:46:14 +03:00
Add SPDX header to java/kotlin files
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
9e5014c082
commit
a75d4d3154
187 changed files with 1231 additions and 148 deletions
|
@ -1,3 +1,10 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-FileCopyrightText: 2020-2021 Stefan Niedermann <info@niedermann.it>
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes;
|
||||
|
||||
import android.os.Bundle;
|
||||
|
|
|
@ -1,3 +1,10 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-FileCopyrightText: 2020-2023 Stefan Niedermann <info@niedermann.it>
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes;
|
||||
|
||||
import static it.niedermann.owncloud.notes.shared.util.NoteUtil.getFontSizeFromPreferences;
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-FileCopyrightText: 2020-2021 Stefan Niedermann <info@niedermann.it>
|
||||
* SPDX-FileCopyrightText: 2020 Christoph Loy <loy.christoph@gmail.com>
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes;
|
||||
|
||||
import android.app.KeyguardManager;
|
||||
|
|
|
@ -1,3 +1,14 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-FileCopyrightText: 2023 Álvaro Brey <alvaro@alvarobrey.com>
|
||||
* SPDX-FileCopyrightText: 2016-2021 Stefan Niedermann <info@niedermann.it>
|
||||
* SPDX-FileCopyrightText: 2021 Konrad Pozniak <k.pozniak@gmx.at>
|
||||
* SPDX-FileCopyrightText: 2020 Christoph Loy <loy.christoph@gmail.com>
|
||||
* SPDX-FileCopyrightText: 2017 Daniel Bailey <dan0xii@users.noreply.github.com>
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes;
|
||||
|
||||
import static androidx.preference.PreferenceManager.getDefaultSharedPreferences;
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2015-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-FileCopyrightText: 2015-2021 Stefan Niedermann <info@niedermann.it>
|
||||
* SPDX-FileCopyrightText: 2021 TacoTheDank <skytkrsfan3895@gmail.com>
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.about;
|
||||
|
||||
import android.os.Bundle;
|
||||
|
|
|
@ -1,3 +1,10 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-FileCopyrightText: 2016-2021 Stefan Niedermann <info@niedermann.it>
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.about;
|
||||
|
||||
import static it.niedermann.owncloud.notes.shared.util.SupportUtil.setTextWithURL;
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-FileCopyrightText: 2023 Álvaro Brey <alvaro@alvarobrey.com>
|
||||
* SPDX-FileCopyrightText: 2016-2021 Stefan Niedermann <info@niedermann.it>
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.about;
|
||||
|
||||
import static it.niedermann.owncloud.notes.shared.util.SupportUtil.setTextWithURL;
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-FileCopyrightText: 2016-2021 Stefan Niedermann <info@niedermann.it>
|
||||
* SPDX-FileCopyrightText: 2020 Christoph Loy <loy.christoph@gmail.com>
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.about;
|
||||
|
||||
import static it.niedermann.owncloud.notes.shared.util.SupportUtil.setTextWithURL;
|
||||
|
|
|
@ -1,3 +1,10 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-FileCopyrightText: 2020-2023 Stefan Niedermann <info@niedermann.it>
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.accountpicker;
|
||||
|
||||
import android.app.Dialog;
|
||||
|
|
|
@ -1,3 +1,10 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-FileCopyrightText: 2020 Stefan Niedermann <info@niedermann.it>
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.accountpicker;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
|
|
@ -1,3 +1,10 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-FileCopyrightText: 2020 Stefan Niedermann <info@niedermann.it>
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.accountswitcher;
|
||||
|
||||
import android.view.LayoutInflater;
|
||||
|
|
|
@ -1,3 +1,10 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-FileCopyrightText: 2020-2023 Stefan Niedermann <info@niedermann.it>
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.accountswitcher;
|
||||
|
||||
import android.app.Dialog;
|
||||
|
|
|
@ -1,3 +1,10 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-FileCopyrightText: 2020 Stefan Niedermann <info@niedermann.it>
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.accountswitcher;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
|
|
@ -1,3 +1,10 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-FileCopyrightText: 2020-2021 Stefan Niedermann <info@niedermann.it>
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.accountswitcher;
|
||||
|
||||
import android.net.Uri;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.branding;
|
||||
|
||||
import androidx.annotation.ColorInt;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.branding;
|
||||
|
||||
import static it.niedermann.owncloud.notes.branding.BrandingUtil.readBrandMainColorLiveData;
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.branding;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import androidx.annotation.ColorInt;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.fragment.app.DialogFragment;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.branding;
|
||||
|
||||
import android.util.TypedValue;
|
||||
|
@ -8,8 +14,6 @@ import androidx.annotation.ColorInt;
|
|||
import androidx.annotation.NonNull;
|
||||
import androidx.fragment.app.Fragment;
|
||||
|
||||
import it.niedermann.owncloud.notes.R;
|
||||
|
||||
public abstract class BrandedFragment extends Fragment implements Branded {
|
||||
|
||||
@ColorInt
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.branding;
|
||||
|
||||
import android.content.Context;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.branding;
|
||||
|
||||
import static it.niedermann.owncloud.notes.branding.BrandingUtil.readBrandMainColor;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.branding;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.branding;
|
||||
|
||||
import android.content.Context;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2022-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.branding;
|
||||
|
||||
import android.content.Context;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2023-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.branding;
|
||||
|
||||
import static com.nextcloud.android.common.ui.util.ColorStateListUtilsKt.buildColorStateList;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2017-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.edit;
|
||||
|
||||
import static java.lang.Boolean.TRUE;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2015-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.edit;
|
||||
|
||||
import static it.niedermann.owncloud.notes.shared.model.ENavigationCategoryType.FAVORITES;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2023-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.edit
|
||||
|
||||
import android.annotation.SuppressLint
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2017-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.edit;
|
||||
|
||||
import static androidx.core.view.ViewCompat.isAttachedToWindow;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2015-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.edit;
|
||||
|
||||
import static androidx.core.view.ViewCompat.isAttachedToWindow;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.edit;
|
||||
|
||||
import android.os.Bundle;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.edit;
|
||||
|
||||
import android.os.Bundle;
|
||||
|
|
|
@ -1,7 +1,12 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.edit.category;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2017-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.edit.category;
|
||||
|
||||
import android.app.Dialog;
|
||||
|
@ -5,9 +11,7 @@ import android.content.Context;
|
|||
import android.os.Bundle;
|
||||
import android.text.Editable;
|
||||
import android.text.TextWatcher;
|
||||
import android.util.Log;
|
||||
import android.view.View;
|
||||
import android.view.WindowManager;
|
||||
import android.widget.EditText;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
|
|
@ -1,5 +1,15 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.edit.category;
|
||||
|
||||
import static androidx.lifecycle.Transformations.map;
|
||||
import static androidx.lifecycle.Transformations.switchMap;
|
||||
import static it.niedermann.owncloud.notes.shared.util.DisplayUtils.convertToCategoryNavigationItem;
|
||||
|
||||
import android.app.Application;
|
||||
import android.text.TextUtils;
|
||||
|
||||
|
@ -13,10 +23,6 @@ import java.util.List;
|
|||
import it.niedermann.owncloud.notes.main.navigation.NavigationItem;
|
||||
import it.niedermann.owncloud.notes.persistence.NotesRepository;
|
||||
|
||||
import static androidx.lifecycle.Transformations.map;
|
||||
import static androidx.lifecycle.Transformations.switchMap;
|
||||
import static it.niedermann.owncloud.notes.shared.util.DisplayUtils.convertToCategoryNavigationItem;
|
||||
|
||||
public class CategoryViewModel extends AndroidViewModel {
|
||||
|
||||
private final NotesRepository repo;
|
||||
|
|
|
@ -1,12 +1,15 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.edit.title;
|
||||
|
||||
import android.app.Dialog;
|
||||
import android.content.Context;
|
||||
import android.os.Bundle;
|
||||
import android.util.Log;
|
||||
import android.view.View;
|
||||
import android.view.Window;
|
||||
import android.view.WindowManager;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2019-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.exception;
|
||||
|
||||
import android.content.Context;
|
||||
|
@ -17,7 +23,6 @@ import it.niedermann.owncloud.notes.R;
|
|||
import it.niedermann.owncloud.notes.databinding.ActivityExceptionBinding;
|
||||
import it.niedermann.owncloud.notes.exception.tips.TipsAdapter;
|
||||
|
||||
|
||||
public class ExceptionActivity extends AppCompatActivity {
|
||||
|
||||
private static final String KEY_THROWABLE = "throwable";
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.exception;
|
||||
|
||||
import android.app.Dialog;
|
||||
|
@ -6,7 +12,6 @@ import android.os.Bundle;
|
|||
import android.view.View;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.appcompat.app.AlertDialog;
|
||||
import androidx.appcompat.app.AppCompatDialogFragment;
|
||||
import androidx.fragment.app.DialogFragment;
|
||||
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.exception;
|
||||
|
||||
import android.app.Activity;
|
||||
|
@ -5,7 +11,6 @@ import android.util.Log;
|
|||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
|
||||
public class ExceptionHandler implements Thread.UncaughtExceptionHandler {
|
||||
|
||||
private static final String TAG = ExceptionHandler.class.getSimpleName();
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.exception;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.exception.tips;
|
||||
|
||||
import static android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS;
|
||||
|
@ -5,8 +11,6 @@ import static it.niedermann.owncloud.notes.exception.ExceptionDialogFragment.INT
|
|||
|
||||
import android.content.Intent;
|
||||
import android.net.Uri;
|
||||
import android.os.Build.VERSION;
|
||||
import android.os.Build.VERSION_CODES;
|
||||
import android.provider.Settings;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.ViewGroup;
|
||||
|
@ -116,4 +120,4 @@ public class TipsAdapter extends RecyclerView.Adapter<TipsViewHolder> {
|
|||
private void add(@StringRes int text, @Nullable Intent primaryAction) {
|
||||
tips.add(new TipsModel(text, primaryAction));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.exception.tips;
|
||||
|
||||
import android.content.Intent;
|
||||
|
@ -26,4 +32,4 @@ public class TipsModel {
|
|||
public Intent getActionIntent() {
|
||||
return this.actionIntent;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,13 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.exception.tips;
|
||||
|
||||
import static it.niedermann.owncloud.notes.exception.ExceptionDialogFragment.INTENT_EXTRA_BUTTON_TEXT;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.view.View;
|
||||
|
||||
|
@ -9,9 +17,6 @@ import androidx.recyclerview.widget.RecyclerView;
|
|||
|
||||
import it.niedermann.owncloud.notes.databinding.ItemTipBinding;
|
||||
|
||||
import static it.niedermann.owncloud.notes.exception.ExceptionDialogFragment.INTENT_EXTRA_BUTTON_TEXT;
|
||||
|
||||
|
||||
public class TipsViewHolder extends RecyclerView.ViewHolder {
|
||||
private final ItemTipBinding binding;
|
||||
|
||||
|
@ -32,4 +37,4 @@ public class TipsViewHolder extends RecyclerView.ViewHolder {
|
|||
binding.actionButton.setVisibility(View.GONE);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.importaccount;
|
||||
|
||||
import android.accounts.NetworkErrorException;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.importaccount;
|
||||
|
||||
import android.app.Application;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2015-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.main;
|
||||
|
||||
import static android.os.Build.VERSION.SDK_INT;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.main;
|
||||
|
||||
import static androidx.lifecycle.Transformations.distinctUntilChanged;
|
||||
|
|
|
@ -1,7 +1,12 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.main;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.util.TypedValue;
|
||||
import android.view.Menu;
|
||||
import android.view.MenuItem;
|
||||
|
@ -14,13 +19,11 @@ import androidx.appcompat.view.ActionMode.Callback;
|
|||
import androidx.core.graphics.drawable.DrawableCompat;
|
||||
import androidx.fragment.app.FragmentManager;
|
||||
import androidx.lifecycle.LifecycleOwner;
|
||||
import androidx.lifecycle.LiveData;
|
||||
import androidx.recyclerview.selection.SelectionTracker;
|
||||
|
||||
import com.google.android.material.snackbar.Snackbar;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.ExecutorService;
|
||||
import java.util.concurrent.Executors;
|
||||
|
||||
|
@ -28,8 +31,6 @@ import it.niedermann.owncloud.notes.R;
|
|||
import it.niedermann.owncloud.notes.accountpicker.AccountPickerDialogFragment;
|
||||
import it.niedermann.owncloud.notes.branding.BrandedSnackbar;
|
||||
import it.niedermann.owncloud.notes.edit.category.CategoryDialogFragment;
|
||||
import it.niedermann.owncloud.notes.persistence.entity.Account;
|
||||
import it.niedermann.owncloud.notes.persistence.entity.Note;
|
||||
import it.niedermann.owncloud.notes.shared.util.ShareUtil;
|
||||
|
||||
public class MultiSelectedActionModeCallback implements Callback {
|
||||
|
|
|
@ -1,5 +1,13 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2015-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.main.items;
|
||||
|
||||
import static it.niedermann.owncloud.notes.shared.util.NoteUtil.getFontSizeFromPreferences;
|
||||
|
||||
import android.content.Context;
|
||||
import android.text.TextUtils;
|
||||
import android.view.LayoutInflater;
|
||||
|
@ -35,8 +43,6 @@ import it.niedermann.owncloud.notes.persistence.entity.Note;
|
|||
import it.niedermann.owncloud.notes.shared.model.Item;
|
||||
import it.niedermann.owncloud.notes.shared.model.NoteClickListener;
|
||||
|
||||
import static it.niedermann.owncloud.notes.shared.util.NoteUtil.getFontSizeFromPreferences;
|
||||
|
||||
public class ItemAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> implements Branded {
|
||||
|
||||
private static final String TAG = ItemAdapter.class.getSimpleName();
|
||||
|
|
|
@ -1,15 +1,17 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.main.items;
|
||||
|
||||
import static android.view.View.INVISIBLE;
|
||||
import static android.view.View.VISIBLE;
|
||||
|
||||
import static com.nextcloud.android.common.ui.util.PlatformThemeUtil.isDarkMode;
|
||||
|
||||
import android.content.Context;
|
||||
import android.text.SpannableString;
|
||||
import android.text.TextUtils;
|
||||
import android.text.style.BackgroundColorSpan;
|
||||
import android.text.style.ForegroundColorSpan;
|
||||
import android.view.View;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.TextView;
|
||||
|
@ -19,17 +21,11 @@ import androidx.annotation.ColorInt;
|
|||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.appcompat.widget.AppCompatImageView;
|
||||
import androidx.core.content.ContextCompat;
|
||||
import androidx.core.graphics.drawable.DrawableCompat;
|
||||
import androidx.recyclerview.selection.ItemDetailsLookup;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
import com.google.android.material.chip.Chip;
|
||||
import com.nextcloud.android.common.ui.theme.utils.ColorRole;
|
||||
import com.nextcloud.android.common.ui.util.PlatformThemeUtil;
|
||||
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import it.niedermann.owncloud.notes.R;
|
||||
import it.niedermann.owncloud.notes.branding.BrandingUtil;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.main.items.grid;
|
||||
|
||||
import android.graphics.Rect;
|
||||
|
|
|
@ -1,5 +1,15 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.main.items.grid;
|
||||
|
||||
import static android.view.View.GONE;
|
||||
import static android.view.View.VISIBLE;
|
||||
import static it.niedermann.owncloud.notes.shared.util.NoteUtil.EXCERPT_LINE_SEPARATOR;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.Typeface;
|
||||
import android.text.TextUtils;
|
||||
|
@ -16,10 +26,6 @@ import it.niedermann.owncloud.notes.main.items.NoteViewHolder;
|
|||
import it.niedermann.owncloud.notes.persistence.entity.Note;
|
||||
import it.niedermann.owncloud.notes.shared.model.NoteClickListener;
|
||||
|
||||
import static android.view.View.GONE;
|
||||
import static android.view.View.VISIBLE;
|
||||
import static it.niedermann.owncloud.notes.shared.util.NoteUtil.EXCERPT_LINE_SEPARATOR;
|
||||
|
||||
public class NoteViewGridHolder extends NoteViewHolder {
|
||||
@NonNull
|
||||
private final ItemNotesListNoteItemGridBinding binding;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.main.items.grid;
|
||||
|
||||
import android.content.Context;
|
||||
|
|
|
@ -1,6 +1,11 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.main.items.list;
|
||||
|
||||
import android.content.Context;
|
||||
import android.view.View;
|
||||
|
||||
import androidx.annotation.ColorInt;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.main.items.list;
|
||||
|
||||
import android.content.Context;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.main.items.list;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
|
@ -9,7 +15,6 @@ import android.view.View;
|
|||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.lifecycle.LifecycleOwner;
|
||||
import androidx.lifecycle.LiveData;
|
||||
import androidx.recyclerview.selection.SelectionTracker;
|
||||
import androidx.recyclerview.widget.ItemTouchHelper;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2015-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.main.items.section;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.main.items.section;
|
||||
|
||||
import android.graphics.Rect;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.main.items.section;
|
||||
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.main.items.selection;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
@ -30,4 +36,4 @@ public class ItemIdKeyProvider extends ItemKeyProvider<Long> {
|
|||
final var viewHolder = recyclerView.findViewHolderForItemId(key);
|
||||
return viewHolder == null ? NO_POSITION : viewHolder.getLayoutPosition();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.main.items.selection;
|
||||
|
||||
import android.view.MotionEvent;
|
||||
|
@ -34,4 +40,4 @@ public class ItemLookup extends ItemDetailsLookup<Long> {
|
|||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.main.items.selection;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.main.menu;
|
||||
|
||||
import android.content.Context;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.main.menu;
|
||||
|
||||
import android.content.Intent;
|
||||
|
|
|
@ -1,5 +1,13 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.main.menu;
|
||||
|
||||
import static android.view.View.GONE;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import androidx.annotation.ColorInt;
|
||||
|
@ -8,12 +16,9 @@ import androidx.core.content.ContextCompat;
|
|||
import androidx.core.util.Consumer;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
import it.niedermann.owncloud.notes.R;
|
||||
import it.niedermann.owncloud.notes.branding.BrandingUtil;
|
||||
import it.niedermann.owncloud.notes.databinding.ItemNavigationBinding;
|
||||
|
||||
import static android.view.View.GONE;
|
||||
|
||||
public class MenuViewHolder extends RecyclerView.ViewHolder {
|
||||
|
||||
private final ItemNavigationBinding binding;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.main.navigation;
|
||||
|
||||
import static it.niedermann.owncloud.notes.shared.model.ENavigationCategoryType.UNCATEGORIZED;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.main.navigation;
|
||||
|
||||
public interface NavigationClickListener {
|
||||
|
|
|
@ -1,17 +1,23 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.main.navigation;
|
||||
|
||||
import static it.niedermann.owncloud.notes.shared.model.ENavigationCategoryType.UNCATEGORIZED;
|
||||
|
||||
import android.text.TextUtils;
|
||||
|
||||
import androidx.annotation.DrawableRes;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import it.niedermann.owncloud.notes.shared.model.ENavigationCategoryType;
|
||||
|
||||
import static it.niedermann.owncloud.notes.shared.model.ENavigationCategoryType.UNCATEGORIZED;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
import it.niedermann.owncloud.notes.shared.model.ENavigationCategoryType;
|
||||
|
||||
public class NavigationItem {
|
||||
@NonNull
|
||||
public String id;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.main.navigation;
|
||||
|
||||
import static java.util.Objects.requireNonNull;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.main.slots;
|
||||
|
||||
import android.content.Context;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.main.slots;
|
||||
|
||||
import java.util.Calendar;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.main.slots;
|
||||
|
||||
import android.content.Context;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2022-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.manageaccounts;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.manageaccounts;
|
||||
|
||||
import android.view.LayoutInflater;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.manageaccounts;
|
||||
|
||||
import static android.view.View.GONE;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.manageaccounts;
|
||||
|
||||
import static it.niedermann.owncloud.notes.branding.BrandingUtil.readBrandMainColorLiveData;
|
||||
|
@ -5,14 +11,11 @@ import static it.niedermann.owncloud.notes.shared.util.ApiVersionUtil.getPreferr
|
|||
|
||||
import android.accounts.NetworkErrorException;
|
||||
import android.os.Bundle;
|
||||
import android.util.TypedValue;
|
||||
import android.view.View;
|
||||
import android.widget.Toast;
|
||||
|
||||
import androidx.annotation.AttrRes;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.annotation.Px;
|
||||
import androidx.annotation.StringRes;
|
||||
import androidx.lifecycle.ViewModelProvider;
|
||||
|
||||
|
|
|
@ -1,5 +1,13 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.manageaccounts;
|
||||
|
||||
import static androidx.lifecycle.Transformations.distinctUntilChanged;
|
||||
|
||||
import android.app.Application;
|
||||
import android.content.Context;
|
||||
|
||||
|
@ -20,8 +28,6 @@ import it.niedermann.owncloud.notes.persistence.NotesRepository;
|
|||
import it.niedermann.owncloud.notes.persistence.entity.Account;
|
||||
import it.niedermann.owncloud.notes.shared.model.IResponseCallback;
|
||||
|
||||
import static androidx.lifecycle.Transformations.distinctUntilChanged;
|
||||
|
||||
public class ManageAccountsViewModel extends AndroidViewModel {
|
||||
|
||||
private final ExecutorService executor = Executors.newCachedThreadPool();
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.persistence;
|
||||
|
||||
import android.content.Context;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.persistence;
|
||||
|
||||
import android.content.Context;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.persistence;
|
||||
|
||||
import android.content.Context;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2023-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.persistence
|
||||
|
||||
import android.app.Application
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2015-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.persistence;
|
||||
|
||||
import android.content.Context;
|
||||
|
@ -21,7 +27,23 @@ import it.niedermann.owncloud.notes.persistence.entity.Converters;
|
|||
import it.niedermann.owncloud.notes.persistence.entity.Note;
|
||||
import it.niedermann.owncloud.notes.persistence.entity.NotesListWidgetData;
|
||||
import it.niedermann.owncloud.notes.persistence.entity.SingleNoteWidgetData;
|
||||
import it.niedermann.owncloud.notes.persistence.migration.*;
|
||||
import it.niedermann.owncloud.notes.persistence.migration.Migration_10_11;
|
||||
import it.niedermann.owncloud.notes.persistence.migration.Migration_11_12;
|
||||
import it.niedermann.owncloud.notes.persistence.migration.Migration_12_13;
|
||||
import it.niedermann.owncloud.notes.persistence.migration.Migration_13_14;
|
||||
import it.niedermann.owncloud.notes.persistence.migration.Migration_14_15;
|
||||
import it.niedermann.owncloud.notes.persistence.migration.Migration_15_16;
|
||||
import it.niedermann.owncloud.notes.persistence.migration.Migration_16_17;
|
||||
import it.niedermann.owncloud.notes.persistence.migration.Migration_17_18;
|
||||
import it.niedermann.owncloud.notes.persistence.migration.Migration_18_19;
|
||||
import it.niedermann.owncloud.notes.persistence.migration.Migration_19_20;
|
||||
import it.niedermann.owncloud.notes.persistence.migration.Migration_20_21;
|
||||
import it.niedermann.owncloud.notes.persistence.migration.Migration_21_22;
|
||||
import it.niedermann.owncloud.notes.persistence.migration.Migration_22_23;
|
||||
import it.niedermann.owncloud.notes.persistence.migration.Migration_23_24;
|
||||
import it.niedermann.owncloud.notes.persistence.migration.Migration_24_25;
|
||||
import it.niedermann.owncloud.notes.persistence.migration.Migration_9_10;
|
||||
|
||||
@Database(
|
||||
entities = {
|
||||
Account.class,
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.persistence;
|
||||
|
||||
import android.content.Context;
|
||||
|
@ -20,7 +26,6 @@ import it.niedermann.owncloud.notes.shared.model.IResponseCallback;
|
|||
import it.niedermann.owncloud.notes.shared.model.ImportStatus;
|
||||
import it.niedermann.owncloud.notes.shared.util.ApiVersionUtil;
|
||||
|
||||
|
||||
public class NotesImportTask {
|
||||
|
||||
private static final String TAG = NotesImportTask.class.getSimpleName();
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.persistence;
|
||||
|
||||
import static android.os.Build.VERSION.SDK_INT;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.persistence;
|
||||
|
||||
import android.content.Context;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2019-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.persistence;
|
||||
|
||||
import android.content.Context;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.persistence.dao;
|
||||
|
||||
import androidx.annotation.ColorInt;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.persistence.dao;
|
||||
|
||||
import androidx.lifecycle.LiveData;
|
||||
|
@ -5,10 +11,7 @@ import androidx.room.Dao;
|
|||
import androidx.room.Insert;
|
||||
import androidx.room.Query;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import it.niedermann.owncloud.notes.persistence.entity.CategoryOptions;
|
||||
import it.niedermann.owncloud.notes.persistence.entity.CategoryWithNotesCount;
|
||||
import it.niedermann.owncloud.notes.shared.model.CategorySortingMethod;
|
||||
|
||||
@Dao
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.persistence.dao;
|
||||
|
||||
import androidx.lifecycle.LiveData;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.persistence.dao;
|
||||
|
||||
import androidx.room.Dao;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.persistence.dao;
|
||||
|
||||
import androidx.room.Dao;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.persistence.entity;
|
||||
|
||||
import android.graphics.Color;
|
||||
|
|
|
@ -1,10 +1,15 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.persistence.entity;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.room.Entity;
|
||||
import androidx.room.ForeignKey;
|
||||
import androidx.room.Ignore;
|
||||
import androidx.room.Index;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.persistence.entity;
|
||||
|
||||
import androidx.room.Ignore;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.persistence.entity;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.persistence.entity;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.persistence.entity;
|
||||
|
||||
import androidx.annotation.IntRange;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.persistence.entity;
|
||||
|
||||
import androidx.room.Entity;
|
||||
|
|
|
@ -1,15 +1,18 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.persistence.migration;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.SharedPreferences;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.preference.PreferenceManager;
|
||||
import androidx.room.migration.Migration;
|
||||
import androidx.sqlite.db.SupportSQLiteDatabase;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import it.niedermann.owncloud.notes.preferences.DarkModeSetting;
|
||||
|
||||
public class Migration_10_11 extends Migration {
|
||||
|
|
|
@ -1,7 +1,12 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.persistence.migration;
|
||||
|
||||
import android.content.Context;
|
||||
import android.database.sqlite.SQLiteDatabase;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.room.migration.Migration;
|
||||
|
|
|
@ -1,7 +1,12 @@
|
|||
/*
|
||||
* Nextcloud Notes - Android Client
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
package it.niedermann.owncloud.notes.persistence.migration;
|
||||
|
||||
import android.content.Context;
|
||||
import android.database.sqlite.SQLiteDatabase;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.room.migration.Migration;
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue