mirror of
https://github.com/nextcloud/notes-android.git
synced 2024-11-25 22:36:17 +03:00
commit
ccbf685acd
21 changed files with 57 additions and 64 deletions
3
.github/FUNDING.yml
vendored
3
.github/FUNDING.yml
vendored
|
@ -1,4 +1,3 @@
|
|||
# These are supported funding model platforms
|
||||
|
||||
liberapay: stefan-niedermann
|
||||
custom: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=K7HVLE6J7SXXA
|
||||
custom: https://nextcloud.com/include/
|
||||
|
|
2
.github/ISSUE_TEMPLATE/bug_report.md
vendored
2
.github/ISSUE_TEMPLATE/bug_report.md
vendored
|
@ -8,7 +8,7 @@ labels: bug
|
|||
Guidelines for submitting issues:
|
||||
|
||||
* Bug reports which do not fill the complete issue template will be closed.
|
||||
* Please have a look at our [FAQ](https://github.com/stefan-niedermann/nextcloud-notes/blob/master/FAQ.md)
|
||||
* Please have a look at our [FAQ](https://github.com/nextcloud/notes-android/blob/master/FAQ.md)
|
||||
* Please search the existing issues first, it's likely that your issue was already reported or even fixed.
|
||||
* This repository is *only* for issues within the Nextcloud Notes Android app
|
||||
-->
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
## Submitting bug reports
|
||||
|
||||
If you find a bug, feel free to [open an issue](https://github.com/stefan-niedermann/OwnCloud-Notes/issues/new). But please provide these information in the comment:
|
||||
If you find a bug, feel free to [open an issue](https://github.com/nextcloud/notes-android/issues/new). But please provide these information in the comment:
|
||||
|
||||
**Android version:** e. g. 6.0.1 Marshmallow
|
||||
|
||||
|
|
46
FAQ.md
46
FAQ.md
|
@ -1,19 +1,19 @@
|
|||
# Frequently asked questions
|
||||
|
||||
- [Why aren't there any buttons to apply formatting?](https://github.com/stefan-niedermann/nextcloud-notes/blob/master/FAQ.md#why-arent-there-any-buttons-to-apply-formatting)
|
||||
- [I have experienced an error](https://github.com/stefan-niedermann/nextcloud-notes/blob/master/FAQ.md#i-have-experienced-an-error)
|
||||
- [`NextcloudApiNotRespondingException`](https://github.com/stefan-niedermann/nextcloud-notes/blob/master/FAQ.md#nextcloudapinotrespondingexception)
|
||||
- [`UnknownErrorException: Read timed out`](https://github.com/stefan-niedermann/nextcloud-notes/blob/master/FAQ.md#unknownerrorexception-read-timed-out)
|
||||
- [`NextcloudHttpRequestFailedException`](https://github.com/stefan-niedermann/nextcloud-notes/blob/master/FAQ.md#nextcloudhttprequestfailedexception)
|
||||
- [`IllegalStateException: Duplicate key`](https://github.com/stefan-niedermann/nextcloud-notes/blob/master/FAQ.md#illegalstateexception-duplicate-key)
|
||||
- [`NextcloudFilesAppAccountNotFoundException`](https://github.com/stefan-niedermann/nextcloud-notes/blob/master/FAQ.md#nextcloudfilesappaccountnotfoundexception)
|
||||
- [`TokenMismatchException`](https://github.com/stefan-niedermann/nextcloud-notes/blob/master/FAQ.md#tokenmismatchexception)
|
||||
- [Workarounds](https://github.com/stefan-niedermann/nextcloud-notes/blob/master/FAQ.md#workarounds)
|
||||
- [How to share notes?](https://github.com/stefan-niedermann/nextcloud-notes/blob/master/FAQ.md#how-to-share-notes)
|
||||
- [Why don't you make an option for…?](https://github.com/stefan-niedermann/nextcloud-notes/blob/master/FAQ.md#why-dont-you-make-an-option-for)
|
||||
- [Why is there no support for pens?](https://github.com/stefan-niedermann/nextcloud-notes/blob/master/FAQ.md#why-is-there-no-support-for-pens)
|
||||
- [Why has my bug report been closed?](https://github.com/stefan-niedermann/nextcloud-notes/blob/master/FAQ.md#why-has-my-bug-report-been-closed)
|
||||
- [How can i activate the dark mode for widgets?](https://github.com/stefan-niedermann/nextcloud-notes/blob/master/FAQ.md#how-can-i-activate-the-dark-mode-for-widgets)
|
||||
- [Why aren't there any buttons to apply formatting?](https://github.com/nextcloud/notes-android/blob/master/FAQ.md#why-arent-there-any-buttons-to-apply-formatting)
|
||||
- [I have experienced an error](https://github.com/nextcloud/notes-android/blob/master/FAQ.md#i-have-experienced-an-error)
|
||||
- [`NextcloudApiNotRespondingException`](https://github.com/nextcloud/notes-android/blob/master/FAQ.md#nextcloudapinotrespondingexception)
|
||||
- [`UnknownErrorException: Read timed out`](https://github.com/nextcloud/notes-android/blob/master/FAQ.md#unknownerrorexception-read-timed-out)
|
||||
- [`NextcloudHttpRequestFailedException`](https://github.com/nextcloud/notes-android/blob/master/FAQ.md#nextcloudhttprequestfailedexception)
|
||||
- [`IllegalStateException: Duplicate key`](https://github.com/nextcloud/notes-android/blob/master/FAQ.md#illegalstateexception-duplicate-key)
|
||||
- [`NextcloudFilesAppAccountNotFoundException`](https://github.com/nextcloud/notes-android/blob/master/FAQ.md#nextcloudfilesappaccountnotfoundexception)
|
||||
- [`TokenMismatchException`](https://github.com/nextcloud/notes-android/blob/master/FAQ.md#tokenmismatchexception)
|
||||
- [Workarounds](https://github.com/nextcloud/notes-android/blob/master/FAQ.md#workarounds)
|
||||
- [How to share notes?](https://github.com/nextcloud/notes-android/blob/master/FAQ.md#how-to-share-notes)
|
||||
- [Why don't you make an option for…?](https://github.com/nextcloud/notes-android/blob/master/FAQ.md#why-dont-you-make-an-option-for)
|
||||
- [Why is there no support for pens?](https://github.com/nextcloud/notes-android/blob/master/FAQ.md#why-is-there-no-support-for-pens)
|
||||
- [Why has my bug report been closed?](https://github.com/nextcloud/notes-android/blob/master/FAQ.md#why-has-my-bug-report-been-closed)
|
||||
- [How can i activate the dark mode for widgets?](https://github.com/nextcloud/notes-android/blob/master/FAQ.md#how-can-i-activate-the-dark-mode-for-widgets)
|
||||
|
||||
## Why aren't there any buttons to apply formatting
|
||||
|
||||
|
@ -49,7 +49,7 @@ Probably you will experience it when importing an account, because at this momen
|
|||
Further synchronizations are usually not causing this issue, because the Notes app tries to synchronize only *changed* notes after the first import.
|
||||
If your notes are not ten thousands of characters long, it is very unlikely that this causes a connection timeout.
|
||||
|
||||
We improved the import of an account in version `3.4.12` to make it more reliable by [fetching notes step by step](https://github.com/stefan-niedermann/nextcloud-notes/issues/761#issuecomment-836989421).
|
||||
We improved the import of an account in version `3.4.12` to make it more reliable by [fetching notes step by step](https://github.com/nextcloud/notes-android/issues/761#issuecomment-836989421).
|
||||
If you are using an older version, you can as a workaround for the first import try to
|
||||
1. move all your notes to a different folder on your Nextcloud instance
|
||||
2. import your account on your smartphone
|
||||
|
@ -59,29 +59,29 @@ If you are using an older version, you can as a workaround for the first import
|
|||
|
||||
#### `HTTP status-code: 301`
|
||||
|
||||
This issue can happen in case of a complex inconsistent state between the Notes Android app, the Single Sign On library, the Nextcloud Android app and your Nextcloud instance. Please try to remove your account from *both*, Notes Android *and* Nextcloud Android and readd it again [as described in the `workarounds` section](https://github.com/stefan-niedermann/nextcloud-notes/blob/master/FAQ.md#workarounds). If the issue persists, please report especially any changes on your server side environment: Did you change your domain or IP address of your Nextcloud server? Did you change something about your user account or en- / disabled multi factor authentication (2FA / MFA)? Did you remove your account (only) from the Nextcloud Android app?
|
||||
This issue can happen in case of a complex inconsistent state between the Notes Android app, the Single Sign On library, the Nextcloud Android app and your Nextcloud instance. Please try to remove your account from *both*, Notes Android *and* Nextcloud Android and readd it again [as described in the `workarounds` section](https://github.com/nextcloud/notes-android/blob/master/FAQ.md#workarounds). If the issue persists, please report especially any changes on your server side environment: Did you change your domain or IP address of your Nextcloud server? Did you change something about your user account or en- / disabled multi factor authentication (2FA / MFA)? Did you remove your account (only) from the Nextcloud Android app?
|
||||
|
||||
#### `HTTP status-code: 302`
|
||||
|
||||
As clearly described in the description of the app, [one of the requirements](https://github.com/stefan-niedermann/nextcloud-notes#link-requirements) is to have installed the [`Notes`](https://apps.nextcloud.com/apps/notes) app on your server. This means:
|
||||
As clearly described in the description of the app, [one of the requirements](https://github.com/nextcloud/notes-android#link-requirements) is to have installed the [`Notes`](https://apps.nextcloud.com/apps/notes) app on your server. This means:
|
||||
- **not** [`Quick notes`](https://apps.nextcloud.com/apps/quicknotes)
|
||||
- **not** [`Carnet`](https://apps.nextcloud.com/apps/carnet)
|
||||
- **not** `SimpleNote`, `NextNotes`, `Joplin` nor any other app.
|
||||
|
||||
Only the [`Notes`](https://apps.nextcloud.com/apps/notes) app is supported by the Notes Android app. Granted, detecting a missing installation of the `Notes` app should be more seamlessly - [we are aware of it](https://github.com/stefan-niedermann/nextcloud-notes/issues/1475) and will try to enhance the detection.
|
||||
Only the [`Notes`](https://apps.nextcloud.com/apps/notes) app is supported by the Notes Android app. Granted, detecting a missing installation of the `Notes` app should be more seamlessly - [we are aware of it](https://github.com/nextcloud/notes-android/issues/1475) and will try to enhance the detection.
|
||||
|
||||
### `IllegalStateException: Duplicate key`
|
||||
|
||||
This is issue was caused by a bug which was present in the Notes Android app between `3.4.0` and `3.4.10`. It has been fixed in `3.4.11`, though it created a corrupt database state which is not recoverable automatically without data loss. It is therefore required to [clear the storage of the Notes Android app](https://github.com/stefan-niedermann/nextcloud-notes/blob/master/FAQ.md#workarounds) and import your account again from scratch. Make sure to backup unsynchronized changes before doing this.
|
||||
This is issue was caused by a bug which was present in the Notes Android app between `3.4.0` and `3.4.10`. It has been fixed in `3.4.11`, though it created a corrupt database state which is not recoverable automatically without data loss. It is therefore required to [clear the storage of the Notes Android app](https://github.com/nextcloud/notes-android/blob/master/FAQ.md#workarounds) and import your account again from scratch. Make sure to backup unsynchronized changes before doing this.
|
||||
|
||||
### `NextcloudFilesAppAccountNotFoundException`
|
||||
|
||||
We are not yet sure what exactly causes this issue, but investigate it by [adding more debug logs to recent versions](https://github.com/stefan-niedermann/nextcloud-notes/issues/1256#issuecomment-859505153). In theory this might happen if an already imported account has been deleted in the Nextcloud app.
|
||||
We are not yet sure what exactly causes this issue, but investigate it by [adding more debug logs to recent versions](https://github.com/nextcloud/notes-android/issues/1256#issuecomment-859505153). In theory this might happen if an already imported account has been deleted in the Nextcloud app.
|
||||
As a workaround you can remove the account (or clear the storage of the app as described below if you can't access the account manager anymore) and import it again.
|
||||
|
||||
### `TokenMismatchException`
|
||||
|
||||
The reason of this error is not yet clear. It often seems to be connected to changes of the authentication (for example enabling 2FA after some time). Please clear the storage of both, the Notes and the Nextcloud Android apps as described in the [workarounds](https://github.com/stefan-niedermann/nextcloud-notes/blob/master/FAQ.md#wrokarounds) section.
|
||||
The reason of this error is not yet clear. It often seems to be connected to changes of the authentication (for example enabling 2FA after some time). Please clear the storage of both, the Notes and the Nextcloud Android apps as described in the [workarounds](https://github.com/nextcloud/notes-android/blob/master/FAQ.md#wrokarounds) section.
|
||||
|
||||
### Workarounds
|
||||
|
||||
|
@ -106,7 +106,7 @@ Nextcloud / Notes
|
|||
|
||||
Then set up your account in the Nextcloud Android app again and import the configured account in the Notes Android app.
|
||||
|
||||
If the issue persists, [open a bug report in our issue tracker](https://github.com/stefan-niedermann/nextcloud-notes/issues/new?assignees=&labels=bug&template=bug_report.md&title=).
|
||||
If the issue persists, [open a bug report in our issue tracker](https://github.com/nextcloud/notes-android/issues/new?assignees=&labels=bug&template=bug_report.md&title=).
|
||||
|
||||
## How to share notes?
|
||||
|
||||
|
@ -145,7 +145,7 @@ Since i am not aware of any proper free SDK for pens, I recommend you to ask you
|
|||
|
||||
### Hardware issues
|
||||
|
||||
Given a [free SDK](#licensing-issues) can be found, there is another issue: I don't own a device with a pen. I welcome [Pull Requests](https://github.com/stefan-niedermann/nextcloud-notes/pulls) with contributions to this topic, but i can and will not buy a new device just for this aspect, sorry.
|
||||
Given a [free SDK](#licensing-issues) can be found, there is another issue: I don't own a device with a pen. I welcome [Pull Requests](https://github.com/nextcloud/notes-android/pulls) with contributions to this topic, but i can and will not buy a new device just for this aspect, sorry.
|
||||
|
||||
## Why has my bug report been closed?
|
||||
|
||||
|
|
26
README.md
26
README.md
|
@ -1,15 +1,15 @@
|
|||
# Nextcloud Notes for Android
|
||||
An android client for [Nextcloud Notes App](https://github.com/nextcloud/notes/).
|
||||
|
||||
[![Android CI](https://github.com/stefan-niedermann/nextcloud-notes/workflows/Android%20CI/badge.svg)](https://github.com/stefan-niedermann/nextcloud-notes/actions)
|
||||
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/9f784826834042e8b512d531cab84711)](https://www.codacy.com/manual/info_147/nextcloud-notes?utm_source=github.com&utm_medium=referral&utm_content=stefan-niedermann/nextcloud-notes&utm_campaign=Badge_Grade)
|
||||
[![GitHub issues](https://img.shields.io/github/issues/stefan-niedermann/nextcloud-notes.svg)](https://github.com/stefan-niedermann/nextcloud-notes/issues)
|
||||
[![GitHub stars](https://img.shields.io/github/stars/stefan-niedermann/nextcloud-notes.svg)](https://github.com/stefan-niedermann/nextcloud-notes/stargazers)
|
||||
[![Android CI](https://github.com/nextcloud/notes-android/workflows/Android%20CI/badge.svg)](https://github.com/nextcloud/notes-android/actions)
|
||||
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/9f784826834042e8b512d531cab84711)](https://www.codacy.com/manual/info_147/nextcloud-notes?utm_source=github.com&utm_medium=referral&utm_content=nextcloud/notes-android&utm_campaign=Badge_Grade)
|
||||
[![GitHub issues](https://img.shields.io/github/issues/nextcloud/notes-android.svg)](https://github.com/nextcloud/notes-android/issues)
|
||||
[![GitHub stars](https://img.shields.io/github/stars/nextcloud/notes-android.svg)](https://github.com/nextcloud/notes-android/stargazers)
|
||||
[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
|
||||
|
||||
## :arrow_forward: Access
|
||||
|
||||
[![Latest Release](https://img.shields.io/github/v/tag/stefan-niedermann/nextcloud-notes?label=latest+release&sort=semver)](https://github.com/stefan-niedermann/nextcloud-notes/tags)
|
||||
[![Latest Release](https://img.shields.io/github/v/tag/nextcloud/notes-android?label=latest+release&sort=semver)](https://github.com/nextcloud/notes-android/tags)
|
||||
[![F-Droid Release](https://img.shields.io/f-droid/v/it.niedermann.owncloud.notes)](https://f-droid.org/de/packages/it.niedermann.owncloud.notes/)
|
||||
|
||||
[<img src="https://play.google.com/intl/en_us/badges/images/generic/en_badge_web_generic.png"
|
||||
|
@ -18,12 +18,6 @@ An android client for [Nextcloud Notes App](https://github.com/nextcloud/notes/)
|
|||
[<img src="https://f-droid.org/badge/get-it-on.png"
|
||||
alt="Get it on F-Droid"
|
||||
height="80">](https://f-droid.org/repository/browse/?fdid=it.niedermann.owncloud.notes)
|
||||
[<img src="https://raw.githubusercontent.com/stefan-niedermann/paypal-donate-button/master/paypal-donate-button.png"
|
||||
alt="Donate with PayPal"
|
||||
height="80">](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=K7HVLE6J7SXXA)
|
||||
[<img src="https://raw.githubusercontent.com/stefan-niedermann/DonateButtons/master/LiberaPay.png"
|
||||
alt="Donate using Liberapay"
|
||||
height="80">](https://liberapay.com/stefan-niedermann/donate)
|
||||
|
||||
## :eyes: Screenshots
|
||||
|
||||
|
@ -42,17 +36,17 @@ An android client for [Nextcloud Notes App](https://github.com/nextcloud/notes/)
|
|||
* Single note widget and note list widget
|
||||
* Render Markdown (using [Markwon](https://noties.io/Markwon))
|
||||
* Translated in many languages on [Transifex](https://www.transifex.com/nextcloud/nextcloud/android-notes/)
|
||||
* Context based formatting ([#363](https://github.com/stefan-niedermann/nextcloud-notes/issues/363))
|
||||
* Password protection ([#354](https://github.com/stefan-niedermann/nextcloud-notes/issues/354))
|
||||
* Context based formatting ([#363](https://github.com/nextcloud/notes-android/issues/363))
|
||||
* Password protection ([#354](https://github.com/nextcloud/notes-android/issues/354))
|
||||
|
||||
## :checkered_flag: Roadmap
|
||||
* We usually focus on [pinned issues](https://github.com/stefan-niedermann/nextcloud-notes/issues) in our issue tracker
|
||||
* We usually focus on [pinned issues](https://github.com/nextcloud/notes-android/issues) in our issue tracker
|
||||
* Since this is an Open Source freetime project, there is no guarantee when and if and how we implement new features
|
||||
|
||||
## :family: Join the team
|
||||
* Test the app with different devices
|
||||
* Report issues in the [issue tracker](https://github.com/stefan-niedermann/nextcloud-notes/issues)
|
||||
* [Pick a good first issue](https://github.com/stefan-niedermann/nextcloud-notes/labels/Good%20first%20issue) :notebook:
|
||||
* Report issues in the [issue tracker](https://github.com/nextcloud/notes-android/issues)
|
||||
* [Pick a good first issue](https://github.com/nextcloud/notes-android/labels/Good%20first%20issue) :notebook:
|
||||
* Create a [Pull Request](https://opensource.guide/how-to-contribute/#opening-a-pull-request)
|
||||
* Help translating this app on [Transifex](https://www.transifex.com/nextcloud/nextcloud/android-notes/) 🌎
|
||||
* Buy this app on [Google Play Store](https://play.google.com/store/apps/details?id=it.niedermann.owncloud.notes)
|
||||
|
|
|
@ -50,7 +50,7 @@ public abstract class BrandedActivity extends AppCompatActivity implements Brand
|
|||
}
|
||||
|
||||
public void applyBrandToPrimaryToolbar(@NonNull AppBarLayout appBarLayout, @NonNull Toolbar toolbar) {
|
||||
// FIXME Workaround for https://github.com/stefan-niedermann/nextcloud-notes/issues/889
|
||||
// FIXME Workaround for https://github.com/nextcloud/notes-android/issues/889
|
||||
appBarLayout.setBackgroundColor(ContextCompat.getColor(this, R.color.primary));
|
||||
|
||||
final var overflowDrawable = toolbar.getOverflowIcon();
|
||||
|
|
|
@ -146,7 +146,7 @@ public class ImportAccountActivity extends AppCompatActivity {
|
|||
binding.status.setText(getString(R.string.error_sync, getString(R.string.error_no_network)));
|
||||
binding.status.setVisibility(View.VISIBLE);
|
||||
} else if (t instanceof UnknownErrorException && t.getMessage() != null && t.getMessage().contains("No address associated with hostname")) {
|
||||
// https://github.com/stefan-niedermann/nextcloud-notes/issues/1014
|
||||
// https://github.com/nextcloud/notes-android/issues/1014
|
||||
binding.status.setText(R.string.you_have_to_be_connected_to_the_internet_in_order_to_add_an_account);
|
||||
binding.status.setVisibility(View.VISIBLE);
|
||||
} else {
|
||||
|
|
|
@ -174,7 +174,7 @@ public class MainActivity extends LockedActivity implements NoteClickListener, A
|
|||
final var account = mainViewModel.getLocalAccountByAccountName(SingleAccountHelper.getCurrentSingleSignOnAccount(getApplicationContext()).name);
|
||||
runOnUiThread(() -> mainViewModel.postCurrentAccount(account));
|
||||
} catch (NextcloudFilesAppAccountNotFoundException e) {
|
||||
// Verbose log output for https://github.com/stefan-niedermann/nextcloud-notes/issues/1256
|
||||
// Verbose log output for https://github.com/nextcloud/notes-android/issues/1256
|
||||
runOnUiThread(() -> new MaterialAlertDialogBuilder(this)
|
||||
.setTitle(NextcloudFilesAppAccountNotFoundException.class.getSimpleName())
|
||||
.setMessage(R.string.backup)
|
||||
|
@ -670,7 +670,7 @@ public class MainActivity extends LockedActivity implements NoteClickListener, A
|
|||
}
|
||||
case REQUEST_CODE_SERVER_SETTINGS: {
|
||||
// Recreate activity completely, because theme switching makes problems when only invalidating the views.
|
||||
// @see https://github.com/stefan-niedermann/nextcloud-notes/issues/529
|
||||
// @see https://github.com/nextcloud/notes-android/issues/529
|
||||
if (RESULT_OK == resultCode) {
|
||||
ActivityCompat.recreate(this);
|
||||
return;
|
||||
|
@ -730,7 +730,7 @@ public class MainActivity extends LockedActivity implements NoteClickListener, A
|
|||
.show());
|
||||
});
|
||||
} else if (e instanceof UnknownErrorException && e.getMessage() != null && e.getMessage().contains("No address associated with hostname")) {
|
||||
// https://github.com/stefan-niedermann/nextcloud-notes/issues/1014
|
||||
// https://github.com/nextcloud/notes-android/issues/1014
|
||||
runOnUiThread(() -> Snackbar.make(coordinatorLayout, R.string.you_have_to_be_connected_to_the_internet_in_order_to_add_an_account, Snackbar.LENGTH_LONG)
|
||||
.setAnchorView(binding.activityNotesListView.fabCreate)
|
||||
.show());
|
||||
|
|
|
@ -625,7 +625,7 @@ public class MainViewModel extends AndroidViewModel {
|
|||
|
||||
/**
|
||||
* @return <code>true</code> if {@param exceptions} contains at least one exception which is not caused by flaky infrastructure.
|
||||
* @see <a href="https://github.com/stefan-niedermann/nextcloud-notes/issues/1303">Issue #1303</a>
|
||||
* @see <a href="https://github.com/nextcloud/notes-android/issues/1303">Issue #1303</a>
|
||||
*/
|
||||
public boolean containsNonInfrastructureRelatedItems(@Nullable Collection<Throwable> exceptions) {
|
||||
if (exceptions == null || exceptions.isEmpty()) {
|
||||
|
|
|
@ -500,7 +500,7 @@ public class NotesRepository {
|
|||
public Note updateNoteAndSync(@NonNull Account localAccount, @NonNull Note oldNote, @Nullable String newContent, @Nullable String newTitle, @Nullable ISyncCallback callback) {
|
||||
final Note newNote;
|
||||
// Re-read the up to date remoteId from the database because the UI might not have the state after synchronization yet
|
||||
// https://github.com/stefan-niedermann/nextcloud-notes/issues/1198
|
||||
// https://github.com/nextcloud/notes-android/issues/1198
|
||||
@Nullable final Long remoteId = db.getNoteDao().getRemoteId(oldNote.getId());
|
||||
if (newContent == null) {
|
||||
newNote = new Note(oldNote.getId(), remoteId, oldNote.getModified(), oldNote.getTitle(), oldNote.getContent(), oldNote.getCategory(), oldNote.getFavorite(), oldNote.getETag(), DBStatus.LOCAL_EDITED, localAccount.getId(), oldNote.getExcerpt(), oldNote.getScrollY());
|
||||
|
@ -598,7 +598,7 @@ public class NotesRepository {
|
|||
.setIntent(intent)
|
||||
.build());
|
||||
} else {
|
||||
// Prevent crash https://github.com/stefan-niedermann/nextcloud-notes/issues/613
|
||||
// Prevent crash https://github.com/nextcloud/notes-android/issues/613
|
||||
Log.e(TAG, "shortLabel cannot be empty " + (BuildConfig.DEBUG ? note : note.getTitle()));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -55,7 +55,7 @@ public class SyncWorker extends Worker {
|
|||
|
||||
/**
|
||||
* Set up sync work to enabled every 15 minutes or just disabled
|
||||
* https://github.com/stefan-niedermann/nextcloud-notes/issues/1168
|
||||
* https://github.com/nextcloud/notes-android/issues/1168
|
||||
*
|
||||
* @param context the application
|
||||
* @param backgroundSync the toggle result backgroundSync
|
||||
|
|
|
@ -32,7 +32,7 @@ public class Migration_13_14 extends Migration {
|
|||
|
||||
/**
|
||||
* Move single note widget preferences to database
|
||||
* https://github.com/stefan-niedermann/nextcloud-notes/issues/754
|
||||
* https://github.com/nextcloud/notes-android/issues/754
|
||||
*/
|
||||
@Override
|
||||
public void migrate(@NonNull SupportSQLiteDatabase db) {
|
||||
|
|
|
@ -22,7 +22,7 @@ public class Migration_14_15 extends Migration {
|
|||
|
||||
/**
|
||||
* Normalize database (move category from string field to own table)
|
||||
* https://github.com/stefan-niedermann/nextcloud-notes/issues/814
|
||||
* https://github.com/nextcloud/notes-android/issues/814
|
||||
*/
|
||||
@Override
|
||||
public void migrate(@NonNull SupportSQLiteDatabase db) {
|
||||
|
|
|
@ -33,7 +33,7 @@ public class Migration_15_16 extends Migration {
|
|||
|
||||
/**
|
||||
* Moves note list widget preferences from {@link SharedPreferences} to database
|
||||
* https://github.com/stefan-niedermann/nextcloud-notes/issues/832
|
||||
* https://github.com/nextcloud/notes-android/issues/832
|
||||
*/
|
||||
@Override
|
||||
public void migrate(@NonNull SupportSQLiteDatabase db) {
|
||||
|
|
|
@ -12,7 +12,7 @@ public class Migration_16_17 extends Migration {
|
|||
|
||||
/**
|
||||
* Adds a column to store the current scroll position per note
|
||||
* https://github.com/stefan-niedermann/nextcloud-notes/issues/227
|
||||
* https://github.com/nextcloud/notes-android/issues/227
|
||||
*/
|
||||
@Override
|
||||
public void migrate(@NonNull SupportSQLiteDatabase db) {
|
||||
|
|
|
@ -12,7 +12,7 @@ import it.niedermann.owncloud.notes.persistence.SyncWorker;
|
|||
|
||||
/**
|
||||
* Enabling backgroundSync, set from {@link String} values to {@link Boolean} values
|
||||
* https://github.com/stefan-niedermann/nextcloud-notes/issues/1168
|
||||
* https://github.com/nextcloud/notes-android/issues/1168
|
||||
*/
|
||||
public class Migration_21_22 extends Migration {
|
||||
@NonNull
|
||||
|
|
|
@ -25,7 +25,7 @@ import it.niedermann.owncloud.notes.shared.model.ApiVersion;
|
|||
/**
|
||||
* Add <code>displayName</code> property to {@link Account}.
|
||||
* <p>
|
||||
* See: <a href="https://github.com/stefan-niedermann/nextcloud-notes/issues/1079">#1079 Show DisplayName instead of uid attribute for LDAP users</a>
|
||||
* See: <a href="https://github.com/nextcloud/notes-android/issues/1079">#1079 Show DisplayName instead of uid attribute for LDAP users</a>
|
||||
* <p>
|
||||
* Sanitizes the stored API versions in the database.
|
||||
*/
|
||||
|
|
|
@ -19,7 +19,7 @@ public class Migration_9_10 extends Migration {
|
|||
|
||||
/**
|
||||
* Adds a column to store excerpt instead of regenerating it each time
|
||||
* https://github.com/stefan-niedermann/nextcloud-notes/issues/528
|
||||
* https://github.com/nextcloud/notes-android/issues/528
|
||||
*/
|
||||
@Override
|
||||
public void migrate(@NonNull SupportSQLiteDatabase db) {
|
||||
|
|
|
@ -59,9 +59,9 @@
|
|||
<string name="error_maintenance_mode">Server is in maintenance mode</string>
|
||||
<string name="error_unknown">An unknown error has occurred.</string>
|
||||
|
||||
<string name="url_source" translatable="false">https://github.com/stefan-niedermann/nextcloud-notes</string>
|
||||
<string name="url_issues" translatable="false">https://github.com/stefan-niedermann/nextcloud-notes/issues/new/choose</string>
|
||||
<string name="url_license" translatable="false">https://github.com/stefan-niedermann/nextcloud-notes/blob/master/LICENSE</string>
|
||||
<string name="url_source" translatable="false">https://github.com/nextcloud/notes-android</string>
|
||||
<string name="url_issues" translatable="false">https://github.com/nextcloud/notes-android/issues/new/choose</string>
|
||||
<string name="url_license" translatable="false">https://github.com/nextcloud/notes-android/blob/master/LICENSE</string>
|
||||
<string name="url_translations" translatable="false">https://www.transifex.com/nextcloud/nextcloud/</string>
|
||||
<string name="url_maintainer" translatable="false">https://www.niedermann.it/</string>
|
||||
<string name="url_about_icon_author" translatable="false">https://github.com/nextcloud/notes/blob/76d15214f80f2bf7ea08427bff73ad145128f090/img/notes.svg</string>
|
||||
|
|
|
@ -49,7 +49,7 @@ public class NoteUtilTest extends TestCase {
|
|||
assertEquals("Test", NoteUtil.generateNoteTitle("\nTest"));
|
||||
assertEquals("Test", NoteUtil.generateNoteTitle("\n\nTest"));
|
||||
|
||||
// https://github.com/stefan-niedermann/nextcloud-notes/issues/1104
|
||||
// https://github.com/nextcloud/notes-android/issues/1104
|
||||
assertEquals("2021-03-24 - Example title", MarkdownUtil.removeMarkdown("2021-03-24 - Example title"));
|
||||
}
|
||||
|
||||
|
|
|
@ -25,4 +25,4 @@ Companion app to Nextcloud Notes.
|
|||
|
||||
👨👩👦 Mitwirken
|
||||
|
||||
* https://github.com/stefan-niedermann/nextcloud-notes#family-join-the-team
|
||||
* https://github.com/nextcloud/notes-android#family-join-the-team
|
||||
|
|
Loading…
Reference in a new issue