Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
235 changes: 235 additions & 0 deletions LICENSES/AGPL-3.0-or-later.txt

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Nextcloud Notes - Android Client
*
* SPDX-FileCopyrightText: 2015-2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
package it.niedermann.owncloud.notes.branding

import android.content.Context
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Nextcloud Notes - Android Client
*
* SPDX-FileCopyrightText: 2015-2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
package it.niedermann.owncloud.notes.branding

import android.view.View
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Nextcloud Notes - Android Client
*
* SPDX-FileCopyrightText: 2015-2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
package it.niedermann.owncloud.notes.persistence

sealed class ApiResult<out T> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Nextcloud Notes - Android Client
*
* SPDX-FileCopyrightText: 2015-2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
package it.niedermann.owncloud.notes.persistence.dao

import androidx.room.Dao
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Nextcloud Notes - Android Client
*
* SPDX-FileCopyrightText: 2015-2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
package it.niedermann.owncloud.notes.persistence.dao

import androidx.room.Dao
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Nextcloud Notes - Android Client
*
* SPDX-FileCopyrightText: 2015-2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
package it.niedermann.owncloud.notes.persistence.entity

import androidx.room.ColumnInfo
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Nextcloud Notes - Android Client
*
* SPDX-FileCopyrightText: 2015-2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
package it.niedermann.owncloud.notes.persistence.sync

import com.google.gson.internal.LinkedTreeMap
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Nextcloud Notes - Android Client
*
* SPDX-FileCopyrightText: 2015-2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
package it.niedermann.owncloud.notes.share;

import android.Manifest;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Nextcloud Notes - Android Client
*
* SPDX-FileCopyrightText: 2015-2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
package it.niedermann.owncloud.notes.share

import android.content.Intent
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
/*
* Nextcloud Notes - Android Client
*
* SPDX-FileCopyrightText: 2015-2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
package it.niedermann.owncloud.notes.share.adapter


import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Nextcloud Notes - Android Client
*
* SPDX-FileCopyrightText: 2015-2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
package it.niedermann.owncloud.notes.share.adapter;

import android.annotation.SuppressLint;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Nextcloud Notes - Android Client
*
* SPDX-FileCopyrightText: 2015-2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
package it.niedermann.owncloud.notes.share.adapter

import android.app.SearchManager
Expand Down Expand Up @@ -37,13 +43,13 @@ class SuggestionAdapter(context: Context, cursor: Cursor?, private val account:
if (iconId != null) {
icon.setImageDrawable(ContextCompat.getDrawable(context, iconId))
}
} catch (e: Exception) {
} catch (_: Exception) {
try {
val username = cursor.getStringOrNull(iconColumn)
if (username != null) {
AvatarLoader.load(context, icon, account, username)
}
} catch (e: Exception) {
} catch (_: Exception) {
icon.setImageDrawable(ContextCompat.getDrawable(context, R.drawable.ic_account_circle_grey_24dp))
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
/*
* Nextcloud Notes - Android Client
*
* SPDX-FileCopyrightText: 2015-2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
package it.niedermann.owncloud.notes.share.adapter.holder;


import android.content.Context;
import android.graphics.PorterDuff;
import android.view.View;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Nextcloud Notes - Android Client
*
* SPDX-FileCopyrightText: 2015-2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
package it.niedermann.owncloud.notes.share.adapter.holder;

import android.content.Context;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Nextcloud Notes - Android Client
*
* SPDX-FileCopyrightText: 2015-2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
package it.niedermann.owncloud.notes.share.adapter.holder;

import android.view.View;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
/*
* Nextcloud Notes - Android Client
*
* SPDX-FileCopyrightText: 2015-2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
package it.niedermann.owncloud.notes.share.adapter.holder;


import android.content.Context;
import android.text.TextUtils;
import android.view.View;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* SPDX-FileCopyrightText: 2018 Andy Scherzinger <info@andy-scherzinger.de>
* SPDX-FileCopyrightText: 2015 David A. Velasco <dvelasco@solidgear.es>
* SPDX-FileCopyrightText: 2015 ownCloud Inc.
* SPDX-License-Identifier: GPL-2.0-only AND (AGPL-3.0-or-later OR GPL-2.0-only)
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
package it.niedermann.owncloud.notes.share.dialog

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
/*
* Nextcloud Notes - Android Client
*
* SPDX-FileCopyrightText: 2015-2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
package it.niedermann.owncloud.notes.share.dialog;


import android.app.Activity;
import android.os.Bundle;
import android.view.View;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
/*
* Nextcloud Notes - Android Client
*
* SPDX-FileCopyrightText: 2015-2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
package it.niedermann.owncloud.notes.share.dialog


import android.content.DialogInterface
import android.content.Intent
import android.net.Uri
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
/*
* Nextcloud Notes - Android Client
*
* SPDX-FileCopyrightText: 2015-2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
package it.niedermann.owncloud.notes.share.dialog;


import static com.owncloud.android.lib.resources.shares.OCShare.CREATE_PERMISSION_FLAG;
import static com.owncloud.android.lib.resources.shares.OCShare.MAXIMUM_PERMISSIONS_FOR_FILE;
import static com.owncloud.android.lib.resources.shares.OCShare.MAXIMUM_PERMISSIONS_FOR_FOLDER;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
/*
* Nextcloud - Android Client
*
* SPDX-FileCopyrightText: 2024 Alper Ozturk <alper.ozturk@nextcloud.com>
* 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: AGPL-3.0-or-later
*/
package it.niedermann.owncloud.notes.share.dialog


import android.app.Dialog
import android.content.ComponentName
import android.content.Context
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
/*
* Nextcloud - Android Client
*
* SPDX-FileCopyrightText: 2023 Alper Ozturk <alper.ozturk@nextcloud.com>
* SPDX-FileCopyrightText: 2022 Álvaro Brey <alvaro@alvarobrey.com>
* SPDX-FileCopyrightText: 2017-2020 Tobias Kaminsky <tobias@kaminsky.me>
* SPDX-FileCopyrightText: 2018 Andy Scherzinger <info@andy-scherzinger.de>
* SPDX-FileCopyrightText: 2015 María Asensio Valverde <masensio@solidgear.es>
* SPDX-FileCopyrightText: 2015 ownCloud Inc.
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
package it.niedermann.owncloud.notes.share.dialog


import android.app.Dialog
import android.content.DialogInterface
import android.os.Bundle
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Nextcloud Notes - Android Client
*
* SPDX-FileCopyrightText: 2015-2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
package it.niedermann.owncloud.notes.share.helper

import android.content.Context
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
/*
* Nextcloud Notes - Android Client
*
* SPDX-FileCopyrightText: 2015-2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
package it.niedermann.owncloud.notes.share.helper;


import static com.owncloud.android.lib.resources.shares.OCShare.CREATE_PERMISSION_FLAG;
import static com.owncloud.android.lib.resources.shares.OCShare.MAXIMUM_PERMISSIONS_FOR_FILE;
import static com.owncloud.android.lib.resources.shares.OCShare.MAXIMUM_PERMISSIONS_FOR_FOLDER;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
/*
* Nextcloud - Android Client
*
* SPDX-FileCopyrightText: 2019-2020 Tobias Kaminsky <tobias@kaminsky.me>
* SPDX-FileCopyrightText: 2019 Chris Narkiewicz <hello@ezaquarii.com>
* SPDX-FileCopyrightText: 2015 ownCloud Inc.
* SPDX-FileCopyrightText: 2016 Juan Carlos González Cabrero <malkomich@gmail.com>
* SPDX-FileCopyrightText: 2015 David A. Velasco <dvelasco@solidgear.es>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
package it.niedermann.owncloud.notes.share.helper;


import static com.owncloud.android.lib.resources.shares.GetShareesRemoteOperation.PROPERTY_CLEAR_AT;
import static com.owncloud.android.lib.resources.shares.GetShareesRemoteOperation.PROPERTY_ICON;
import static com.owncloud.android.lib.resources.shares.GetShareesRemoteOperation.PROPERTY_MESSAGE;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Nextcloud Notes - Android Client
*
* SPDX-FileCopyrightText: 2015-2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
package it.niedermann.owncloud.notes.share.listener;

import com.owncloud.android.lib.resources.shares.OCShare;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Nextcloud Notes - Android Client
*
* SPDX-FileCopyrightText: 2015-2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
package it.niedermann.owncloud.notes.share.listener;

import com.owncloud.android.lib.resources.shares.OCShare;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
/*
* Nextcloud Notes - Android Client
*
* SPDX-FileCopyrightText: 2015-2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
package it.niedermann.owncloud.notes.share.model

import com.google.gson.annotations.Expose


data class CreateShareRequest(
@Expose
val path: String,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Nextcloud Notes - Android Client
*
* SPDX-FileCopyrightText: 2015-2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
package it.niedermann.owncloud.notes.share.model

import com.google.gson.annotations.Expose
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Nextcloud Notes - Android Client
*
* SPDX-FileCopyrightText: 2015-2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
package it.niedermann.owncloud.notes.share.model

import com.owncloud.android.lib.resources.shares.OCShare
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Nextcloud Notes - Android Client
*
* SPDX-FileCopyrightText: 2015-2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
package it.niedermann.owncloud.notes.share.model

data class QuickPermissionModel(val permissionName: String, val isSelected: Boolean)
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Nextcloud Notes - Android Client
*
* SPDX-FileCopyrightText: 2015-2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
package it.niedermann.owncloud.notes.share.model

data class SharePasswordRequest(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Nextcloud Notes - Android Client
*
* SPDX-FileCopyrightText: 2015-2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
package it.niedermann.owncloud.notes.share.model

import com.google.gson.annotations.Expose
Expand Down
Loading
Loading