Commit graph

1113 commits

Author SHA1 Message Date
Isaac_Chen
a1c22a262f Bug fixed: not including accountId in search category 2020-05-05 18:52:07 +08:00
Isaac_Chen
39c43f74fd Finish onUpgrade() 2020-05-05 18:38:57 +08:00
Hui-Ouyang16
4d1ed6bbde find some bugs in NotesDatabase and add some test template 2020-05-05 04:52:48 +08:00
Hui-Ouyang16
cc2aaed5eb finished chinese character test case 2020-05-05 03:25:20 +08:00
Isc
789b2e20d1 Bug fixed: move where before group by 2020-05-05 02:51:01 +08:00
Isc
76204e39db Bug fixed: Missing account id in geCategories 2020-05-05 02:37:10 +08:00
Hui-Ouyang16
c52be90511 finish multiple test case and find a bug in getCategories 2020-05-05 02:26:43 +08:00
Hui-Ouyang16
57f88551e1 upload some multiple test case 2020-05-05 01:57:19 +08:00
Hui-Ouyang16
06a4a6fa01 finish all signle test case 2020-05-05 01:23:39 +08:00
Peter S
13c20ae4ac provide a demo of searchCategories 2020-05-05 01:05:56 +08:00
Isc
1ef76f8237 Bug fixed: No matched category will runtime error in searchNotes(long, CharSequeence, String, Boolean) 2020-05-05 00:07:55 +08:00
Hui-Ouyang16
89f98a7678 refactor some test case and find a bug in searchNotes 2020-05-04 23:52:11 +08:00
Peter S
1be99b1349 create more test methods 2020-05-04 22:52:58 +08:00
Hui-Ouyang16
94e23a8f5b fixed the timezone problem 2020-05-04 22:01:18 +08:00
Peter S
261c7cd7a0 add a first test method: testAddDeleteNote 2020-05-04 21:45:57 +08:00
Peter S
e1e37740e1 add an instrumented test to test NotesDatabase.java 2020-05-04 19:46:39 +08:00
Isaac_Chen
ecde100310 Add somt test TODO 2020-05-04 13:26:54 +08:00
Isaac_Chen
e0467e8916 Normalize database. Extract Category from Notes. Need to be tested 2020-05-04 04:02:41 +08:00
Stefan Niedermann
97c3e858b3 Fix #797 Change the name of the app in the description 2020-05-02 18:13:17 +02:00
Stefan Niedermann
42bec4b57f Support ETags for capabilities endpoint 2020-05-02 18:06:12 +02:00
Stefan Niedermann
68f8f7b7f7 #762 Branding
Toolbar
2020-05-02 16:29:32 +02:00
Stefan Niedermann
1391bedd6b #762 Branding
Make a setting
2020-05-02 00:30:53 +02:00
Stefan Niedermann
a30ab4cb25 #762 Branding
Make a setting
2020-05-01 23:38:20 +02:00
Stefan Niedermann
e26a6b2f8b #762 Branding
Apply new theme colors on Pull 2 refresh
2020-05-01 22:44:18 +02:00
Stefan Niedermann
f5aad3ac98 #762 Branding
Apply new theme colors on Pull 2 refresh
2020-05-01 22:41:08 +02:00
Stefan Niedermann
674621b11e #762 Branding
Drawer header
2020-05-01 22:33:39 +02:00
Stefan Niedermann
e908abf9b8 #762 Branding
TextInputLayout in category chooser
2020-05-01 22:02:34 +02:00
Stefan Niedermann
994f2b9736 #762 Branding
TextInputLayout in category chooser
2020-05-01 21:52:58 +02:00
Stefan Niedermann
22b226fab9 #762 Branding
Preferences
2020-05-01 21:47:02 +02:00
Stefan Niedermann
9522387646 #762 Branding 2020-05-01 21:37:45 +02:00
Niedermann IT-Dienstleistungen
8d882d2d0a
Merge branch 'master' into support-multiple-api-levels 2020-05-01 14:14:16 +02:00
Stefan Niedermann
7a0c8170c3 pull2refresh: Synchronize *after* capabilities have been refreshed 2020-05-01 12:12:46 +02:00
Stefan Niedermann
3c8a9bc163 Merge remote-tracking branch 'origin/support-multiple-api-levels' into support-multiple-api-levels 2020-05-01 11:59:53 +02:00
Stefan Niedermann
bc1b887761 Remove cache for NotesClient
https://github.com/stefan-niedermann/nextcloud-notes/pull/791#discussion_r418417678
2020-05-01 11:59:48 +02:00
Nextcloud bot
8834205a4a [tx-robot] updated from transifex 2020-05-01 11:56:59 +02:00
Isc
e413287dc0 Add some todo to modify database 2020-04-28 22:37:42 +08:00
korelstar
7f1e2d50e5 fix API v1 path and rename classes 2020-04-24 23:07:29 +02:00
korelstar
940a4f4d56 fix API version save to DB 2020-04-24 23:06:40 +02:00
korelstar
b9c401db3b fix capabilities parsing 2020-04-24 20:38:12 +02:00
Nextcloud bot
c480086f89 [tx-robot] updated from transifex 2020-04-24 14:57:02 +02:00
Mike Chester Wang
e0c292bafd
Update SearchableBaseNoteFragment.java 2020-04-23 23:58:03 +08:00
Mike Chester Wang
5bfb3ee70a
804: Fixed prev and submit button in search
While doing searching, if the content is changed, the search result will NOT change. So if prev and submit are clicked, it may not give the correct respond.
2020-04-23 23:56:35 +08:00
Stefan Niedermann
071ee8228c Only compare major versions of API 2020-04-22 13:55:37 +02:00
Nextcloud bot
2ead387350 [tx-robot] updated from transifex 2020-04-22 12:26:56 +02:00
Isaac_Chen
d3cfecebe8 Two main midifications: 1) Move delay to the top of class SearchableBaseNoteFragment; 2) If there is only one char in the search pattern, search it immediately without delay 2020-04-22 12:23:29 +02:00
Isaac_Chen
c975c07b97 Enhancement for 769: Currently, If the search string changes too frequently, there will be many search tasks running. We add a delay in this commit to prevent this. If the search string does not change in $delay ms, then the search task will start. 2020-04-22 12:23:29 +02:00
Isaac_Chen
3b5124e0b2 Make up for the missing condition judgment in last commit 2020-04-22 12:23:29 +02:00
Isaac_Chen
20388c2e7b Bug fix: 769. The main reason is that the complexity of countOccurrences is O(mn^2), which is too large. So that the main thread may be frozen for a long time. We use a O(m+n) implementation 2020-04-22 12:23:29 +02:00
Stefan Niedermann
f07605d3a6 Initial support for instrumented tests 2020-04-18 23:23:38 +02:00
Stefan Niedermann
d724623e28 Fix #796 Changing the word "odd" 2020-04-17 10:21:28 +02:00
Stefan Niedermann
e3e8b5614a Fix WorkManager cancellation 2020-04-16 12:04:01 +02:00
Stefan Niedermann
6e7fca6e71 Merge branch 'master' into support-multiple-api-levels 2020-04-16 11:52:38 +02:00
Nextcloud bot
041bf2e822 [tx-robot] updated from transifex 2020-04-16 11:49:08 +02:00
Stefan Niedermann
361cea6781 Merge master 2020-04-16 11:33:32 +02:00
Stefan Niedermann
dab2d3cc8f Merge branch 'master' into support-multiple-api-levels 2020-04-16 11:32:59 +02:00
Stefan Niedermann
e1cc30c347 Add more tips for TokenMismatchException 2020-04-16 11:32:44 +02:00
Stefan Niedermann
30adfc6295 Invalidate API cache on TokenMismatchException 2020-04-16 11:26:38 +02:00
Stefan Niedermann
027f787003 Fix TokenMismatchException after deleting and readding an account 2020-04-16 08:11:39 +02:00
Stefan Niedermann
4df11459d5 Merge branch 'master' into support-multiple-api-levels
# Conflicts:
#	app/src/main/java/it/niedermann/owncloud/notes/persistence/NotesClient.java
#	app/src/main/java/it/niedermann/owncloud/notes/persistence/NotesDatabase.java
2020-04-16 08:10:25 +02:00
Stefan Niedermann
807c17a6ca Fix TokenMismatchException after deleting and readding an account 2020-04-16 08:08:10 +02:00
Stefan Niedermann
353a5a553b Merge branch 'master' into support-multiple-api-levels 2020-04-15 16:11:30 +02:00
Nextcloud bot
35ad855d48 [tx-robot] updated from transifex 2020-04-15 16:11:09 +02:00
Stefan Niedermann
0b5039f647 #768 Support API v1.0
Update supported API levels after each sync
2020-04-15 14:55:41 +02:00
Stefan Niedermann
fb6d0ab605 #768 Support API v1.0
Handle exceptions when importing an account more gracefully
2020-04-15 14:29:33 +02:00
Stefan Niedermann
45224fea12 #768 Support API v1.0
Added Capabilities#toString()
2020-04-15 14:18:54 +02:00
Stefan Niedermann
f0cd34d292 #768 Support API v1.0
Fetch capabilities when adding a new account
2020-04-15 13:55:36 +02:00
Valdnet
d5f4780dab Correction of the description
Word correction "hesitate".
2020-04-15 12:40:51 +02:00
Stefan Niedermann
25d9b35a10 #768 Support API v1.0
Try to find highest supported API version and fallback to API version 0.2
2020-04-15 12:06:26 +02:00
Stefan Niedermann
e1c0774d3b Merge branch 'master' into support-multiple-api-levels 2020-04-15 11:15:54 +02:00
Stefan Niedermann
468ff07394 Fix #790 Change the message description 2020-04-15 11:08:00 +02:00
Stefan Niedermann
8bf6b65598 #768 Support API v1.0 and #762 Theming 2020-04-15 11:07:21 +02:00
Stefan Niedermann
7c7f1b27a7 #786 Support API v1.0 2020-04-15 00:07:01 +02:00
Stefan Niedermann
fcacdef1e6 Upgrade database and add entries for API_VERSION and brand 2020-04-14 22:29:33 +02:00
Stefan Niedermann
924fdfb00b Added some final modifiers 2020-04-14 21:47:29 +02:00
Stefan Niedermann
675936a513 Remove testing exception 2020-04-14 21:45:32 +02:00
Stefan Niedermann
70e75ae343 Refactor margins 2020-04-14 21:44:37 +02:00
Stefan Niedermann
02f9a7aa2e Use RecyclerView for tips 2020-04-14 21:44:37 +02:00
Stefan Niedermann
00ee9375c3 Display hints and tips on sync errors 2020-04-14 21:44:37 +02:00
Stefan Niedermann
2a121479d0 Add TokenMismatchException to catchable exceptions on sync 2020-04-14 17:57:27 +02:00
Stefan Niedermann
8448b8c501 #768 ArrayIndexOutOfBoundsException when clicking on Settings 2020-04-08 10:29:29 +02:00
Stefan Niedermann
730cb8273f Merge remote-tracking branch 'origin/master' 2020-04-08 10:14:42 +02:00
Stefan Niedermann
affe0aa94a Enhance ExceptionUtil 2020-04-08 10:14:30 +02:00
Nextcloud bot
1c2aaf9de6 [tx-robot] updated from transifex 2020-04-07 21:46:19 +02:00
Nextcloud bot
a4d07aee31 [tx-robot] updated from transifex 2020-04-03 10:12:48 +02:00
Stefan Niedermann
fb6a0fd830 #776 App crash when selected - add logging 2020-04-02 10:02:37 +02:00
Stefan Niedermann
15208b5288 #776 App crash when selected - remove obsolete catch block 2020-04-02 09:57:22 +02:00
Stefan Niedermann
3940595ee1 Merge remote-tracking branch 'origin/master' 2020-04-02 09:56:27 +02:00
Stefan Niedermann
68db0d438e Fix #776 App crash when selected 2020-04-02 09:56:05 +02:00
Nextcloud bot
019bd1c1ba [tx-robot] updated from transifex 2020-04-01 19:39:33 +02:00
Stefan Niedermann
e973295eaf #776 App crash when selected 2020-04-01 19:38:43 +02:00
Stefan Niedermann
e11d80c45d Add some tools-previews 2020-03-27 12:41:17 +01:00
Niedermann IT-Dienstleistungen
be3afd87bd
Merge branch 'master' into transifex 2020-03-27 09:49:10 +01:00
Stefan Niedermann
afa6355448 Add translations for preference arrays 2020-03-27 09:47:05 +01:00
Nextcloud bot
a9e053737b
[tx-robot] updated from transifex 2020-03-27 03:38:44 +00:00
Stefan Niedermann
8eb03921c9 Fix highlight when wrapping around search occurrences 2020-03-26 14:16:59 +01:00
Stefan Niedermann
d2d33d8508 Enhance global note search highlight 2020-03-26 13:10:20 +01:00
Stefan Niedermann
9a95143f4e Enhance in-note search highlight 2020-03-26 11:21:49 +01:00
Stefan Niedermann
23c7263b09 Merge remote-tracking branch 'origin/master' 2020-03-26 09:02:37 +01:00
Stefan Niedermann
9e71a820ef Fix #722 IndexOutOfBoundsException in note containing external images 2020-03-26 09:02:14 +01:00
Nextcloud bot
ac3e758c4b [tx-robot] updated from transifex 2020-03-25 14:18:35 +01:00
Stefan Niedermann
07071fbb2d version bump to v2.11.4 2020-03-25 14:01:23 +01:00
stefan-niedermann
2fe111652c Remove not needed null checks
Because localAccount can deterministically not be null at this point

Signed-off-by: stefan-niedermann <info@niedermann.it>
2020-03-18 12:19:03 +01:00
stefan-niedermann
f096a17cc3 Use Boolean.TRUE instead of Boolean.valueOf(true) for comparison
Signed-off-by: stefan-niedermann <info@niedermann.it>
2020-03-18 12:02:14 +01:00
stefan-niedermann
20397f7cc3 Fix #714 Swipe to delete broken
Signed-off-by: stefan-niedermann <info@niedermann.it>
2020-03-18 11:02:35 +01:00
stefan-niedermann
b72626c86e Add build flavors
Signed-off-by: stefan-niedermann <info@niedermann.it>
2020-03-18 10:02:30 +01:00
Nextcloud bot
edbe9055e5 [tx-robot] updated from transifex 2020-03-16 15:59:45 +01:00
stefan-niedermann
1df43fa05b Stability improvements and bugfixes for synchronization and list widget
Signed-off-by: stefan-niedermann <info@niedermann.it>
2020-03-16 15:52:54 +01:00
Niedermann IT-Dienstleistungen
6343c6ee6e
Fixed test crash 2020-03-13 23:30:22 +01:00
stefan-niedermann
13a74a36fe Fix #749 🗨️ Remove toasts (and only display snackbars)
Signed-off-by: stefan-niedermann <info@niedermann.it>
2020-03-13 23:10:10 +01:00
stefan-niedermann
e97eaa95c5 Move contents of nextcloud-commons-lib back to project
Signed-off-by: stefan-niedermann <info@niedermann.it>
2020-03-13 23:04:38 +01:00
Nextcloud bot
87a9dbf3be [tx-robot] updated from transifex 2020-03-13 22:42:17 +01:00
stefan-niedermann
9233a57785 Adjust logging to info level
Signed-off-by: stefan-niedermann <info@niedermann.it>
2020-03-13 22:38:26 +01:00
stefan-niedermann
a94d9d0b47 Remove duplicate variable value
Signed-off-by: stefan-niedermann <info@niedermann.it>
2020-03-13 22:32:55 +01:00
Christoph Loy
3763714c97
Switch to fixed timeout based app locking 2020-03-09 22:03:03 +01:00
Christoph Loy
5782a49e66
Merge branch 'master' into 354-password-protection 2020-03-08 12:45:14 +01:00
Christoph Loy
1c9116d93f Merge ifs to satisfy PMD... 2020-03-08 10:10:57 +01:00
Christoph Loy
eafadef56c Make parameter in ContextBasedRangeFormattingCallback#addMarkdown effectively final 2020-03-08 10:10:57 +01:00
Christoph Loy
af6b92fa22 Make parameter of SearchableBaseNoteFragment#indexOfNth effectively final 2020-03-08 10:10:57 +01:00
Christoph Loy
5daf7fcc10 Merge two ifs in NotesTextWatcher 2020-03-08 10:10:57 +01:00
Christoph Loy
8f8ae9772f Reduce visibility of members in persistence 2020-03-08 10:10:57 +01:00
Christoph Loy
26018d359b Make NavigationAdapter#assignItem private 2020-03-08 10:10:57 +01:00
Christoph Loy
f631326566 Make BaseNoteFragment#isNew protected 2020-03-08 10:10:57 +01:00
Christoph Loy
ab3d742a43 Make localAccount in NoteListWidgetConfiguration private 2020-03-08 10:10:57 +01:00
Christoph Loy
bd8991e9f8 Make ExceptionActivity#close private 2020-03-08 10:10:57 +01:00
Christoph Loy
a6d1a0822f Remove unused variable 2020-03-08 10:10:57 +01:00
Christoph Loy
8b512e9322 Add explicit visibility to members of Timeslot 2020-03-08 10:10:57 +01:00
Christoph Loy
d93ee8a636 Reduce visibility of AboutFragmentLicenseTab#openLicense 2020-03-08 10:10:57 +01:00
Christoph Loy
27a298fd97 Add (useless) break to CategoryAdapter to satisfy PMD 2020-03-08 10:10:57 +01:00
Christoph Loy
1759fdbf18 Set access modifier in BaseNoteFragment 2020-03-08 10:10:57 +01:00
Christoph Loy
3c5e08984c Reduce visiblity of members in ExceptionActivity 2020-03-08 10:10:57 +01:00
Christoph Loy
524ad9d0ce Fix derp in NoteUtil 2020-03-08 10:10:57 +01:00
Christoph Loy
053167e014 Make parameters in AlwaysAutoCompleteTextView effectivly final 2020-03-08 10:10:57 +01:00
Christoph Loy
cf36ea70a3 Remove unnecessary blocks from switch-case from ContextBasedRangeFormattingCallback 2020-03-08 10:10:57 +01:00
Christoph Loy
9b1a090f6a Add default case to ContextBasedRangeFormattingCallback 2020-03-08 10:10:57 +01:00
Christoph Loy
26508ac19e Get rid of unnecessary blocks and add default case to switch-case in ContextBasedFormattingCallback 2020-03-08 10:10:57 +01:00
Christoph Loy
b0fab92499 Split declarations 2020-03-08 10:10:57 +01:00
Christoph Loy
e463b29e84 Make parameter effecitvely non-final in NoteUtil 2020-03-08 10:10:57 +01:00
Christoph Loy
8432779bbe Get rid of qualified constant 2020-03-08 10:10:57 +01:00
Christoph Loy
758d475e66 Document NoOp in SingleNoteWidgetFactory 2020-03-08 10:10:57 +01:00
Christoph Loy
e0b1d125db Add default case to NoteListWidget 2020-03-08 10:10:57 +01:00
Christoph Loy
ed1580e488 Add default case to NotesListViewItemTouchHelper 2020-03-08 10:10:57 +01:00
Christoph Loy
449ea5f77d Remove redundant blocks 2020-03-08 10:10:57 +01:00
Christoph Loy
7c1542ea3c Remove redundant blocks in switch-case 2020-03-08 10:10:57 +01:00
Christoph Loy
b53dcf953b Add default case to MultiSelectedActionModeCallback#onActionItemClicked 2020-03-08 10:10:57 +01:00
Christoph Loy
2a704d6647 Do not reassign parameters 2020-03-08 10:10:57 +01:00
Christoph Loy
60c1e05552 Try to reduce complexity 2020-03-08 10:10:57 +01:00
Christoph Loy
0967678b40 Split declarations in NoteEditFragment 2020-03-08 10:10:57 +01:00
Christoph Loy
3b8246236e Get ride of unnecessary and confusiong blocks in switch in CategoryAdapter 2020-03-08 10:10:57 +01:00
Christoph Loy
65a5a0920f Get rid of unnecessary qualified name in BaseNoteFragment 2020-03-08 10:10:57 +01:00
Christoph Loy
0f8d46d975 Add NoOp comment to empty method in NoteListWidgetFactory 2020-03-08 10:10:57 +01:00