Commit graph

1025 commits

Author SHA1 Message Date
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
Christoph Loy
f4ca2aa7bb Split up declarations in NoteListWidgetConfiguration 2020-03-08 10:10:57 +01:00
Christoph Loy
c9102e9362 Split up declarations in NotesListViewActivity 2020-03-08 10:10:57 +01:00
Christoph Loy
20a53eb828 Fix some lint issues 2020-03-08 10:10:57 +01:00
Christoph Loy
6a43d268e9
Revert "Move unlock-check from onCreate to onStart (to provide security even if multiple singlenotewidgets are clicked after another)"
This reverts commit dd36786a

Moving it to onStart created more trouble than was worth
2020-03-06 14:15:34 +01:00
Christoph Loy
22203c3bb5
Merge branch 'master' into 354-password-protection 2020-03-05 22:19:06 +01:00
dependabot-preview[bot]
331b3206da Bump work-runtime from 2.3.2 to 2.3.3
Bumps work-runtime from 2.3.2 to 2.3.3.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-05 08:11:50 +01:00
Christoph Loy
dd36786a81
Move unlock-check from onCreate to onStart (to provide security even if multiple singlenotewidgets are clicked after another) 2020-03-02 22:13:43 +01:00
Christoph Loy
8d3e9c223b
Fix lint warnings 2020-03-02 18:20:48 +01:00
Christoph Loy
804c8ac584
Actually these flags are not even necessary 2020-03-02 18:08:54 +01:00
Christoph Loy
ca718370a3
Switch NO_HISTORY-flag to NEW_TASK and CLEAR_TOP_TASK 2020-03-02 17:31:21 +01:00
Christoph Loy
82868d7585
(Maybe) fix bug with singlenotewidget 2020-03-02 16:57:04 +01:00
Christoph Loy
f1ce566511
Merge branch 'master' into 354-password-protection
# Conflicts:
#	app/src/main/java/it/niedermann/owncloud/notes/android/activity/AboutActivity.java
#	app/src/main/java/it/niedermann/owncloud/notes/android/activity/EditNoteActivity.java
#	app/src/main/java/it/niedermann/owncloud/notes/android/activity/ExceptionActivity.java
#	app/src/main/java/it/niedermann/owncloud/notes/android/activity/NotesListViewActivity.java
#	app/src/main/java/it/niedermann/owncloud/notes/android/activity/PreferencesActivity.java
#	app/src/main/java/it/niedermann/owncloud/notes/android/activity/SelectSingleNoteActivity.java
#	app/src/main/java/it/niedermann/owncloud/notes/android/fragment/PreferencesFragment.java
#	app/src/main/java/it/niedermann/owncloud/notes/util/Notes.java
2020-03-02 16:28:51 +01:00
Christoph Loy
6411150d76
Fix lint by making NoteWidgetHelper#getDarkThemeSetting public 2020-02-28 21:37:51 +01:00
Christoph Loy
482be9b093
Merge Helper methods into NoteWidgetHelper 2020-02-28 21:33:25 +01:00
Christoph Loy
a63e6f5333
Merge branch 'master' into default-dark-mode 2020-02-28 21:13:34 +01:00
stefan-niedermann
59dc831c8e Fix some smaller lint issues
Signed-off-by: stefan-niedermann <info@niedermann.it>
2020-02-28 08:03:11 +01:00
stefan-niedermann
31ff82384f Merge remote-tracking branch 'origin/master'
# Conflicts:
#	app/src/main/java/it/niedermann/owncloud/notes/android/fragment/NotePreviewFragment.java
#	app/src/main/java/it/niedermann/owncloud/notes/android/fragment/NoteReadonlyFragment.java
2020-02-28 07:59:08 +01:00
stefan-niedermann
3187ca6eab Fix #750 Split up NoteSQLiteOpenHelper
Signed-off-by: stefan-niedermann <info@niedermann.it>
2020-02-28 07:57:03 +01:00
Christoph Loy
599f5482fb
Switch order of comparison for migration 11 in NoteSQLiteOpenHelper 2020-02-26 19:08:19 +01:00
Christoph Loy
284387778d
Add warning to not change the names of Enum constants in DarkModeSetting 2020-02-26 19:04:43 +01:00
Christoph Loy
84fdfc7ea3
Add graceful migration of the old boolean setting to the new String setting 2020-02-26 19:00:37 +01:00
Christoph Loy
2dbd7e303b
Remove all translations of "pref_value_theme_light" 2020-02-26 01:18:36 +01:00
Christoph Loy
bb73ab7b6d
Merge branch 'master' into default-dark-mode 2020-02-26 00:41:50 +01:00
Christoph Loy
d94abac8a2 Make Getters in AccountChooserViewHolder private 2020-02-26 00:25:26 +01:00
Christoph Loy
44f15c9628 Try to fix lint "Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes." 2020-02-26 00:25:26 +01:00
Christoph Loy
52cd277f81 Remove butterknife dependency 2020-02-26 00:25:26 +01:00
Christoph Loy
36e8ba38d3 Remove Butterknife from AboutFragmentLicenseTab 2020-02-26 00:25:26 +01:00
Christoph Loy
4977a64fbb Remove Butterknife from AboutFragmentCreditsTab 2020-02-26 00:25:26 +01:00
Christoph Loy
86408d7457 Remove Butterknife from NoteEditFragment 2020-02-26 00:25:26 +01:00
Christoph Loy
2c2c4b4e7d Remove Butterknife from AccountChooserAdapter 2020-02-26 00:25:26 +01:00
Christoph Loy
40a633e510 Remove Butterknife from CategoryAdapter 2020-02-26 00:25:26 +01:00
Christoph Loy
d4398b722e Remove Butterknife from NotePreviewFragment 2020-02-26 00:25:26 +01:00
Christoph Loy
2373b0ebb7 Remove Butterknife from AboutFragmentContributingTab 2020-02-26 00:25:26 +01:00
Christoph Loy
e4b5a413b1 Remove Butterknife from AccountChooserDialogFragment 2020-02-26 00:25:26 +01:00
Christoph Loy
b3ace46318 Remove Butterknife from NoteReadonlyFragment 2020-02-26 00:25:26 +01:00
Christoph Loy
ba3cfe512b Remove Butterknife from CategoryDialogFragment 2020-02-26 00:25:26 +01:00
Christoph Loy
cdd0916b4d Remove Butterknife from ExceptionActivity 2020-02-26 00:25:26 +01:00
Christoph Loy
500753cc08 Remove Butterknife from EditNoteActivity 2020-02-26 00:25:26 +01:00
Christoph Loy
01fa17cae1 Remove Butterknife from AboutActivity 2020-02-26 00:25:26 +01:00
Christoph Loy
f6fab7f635 Remove Butterknife from SelectSingleNoteActivity 2020-02-26 00:25:26 +01:00
Christoph Loy
80691a9e1a Remove Butterknife from NotesListViewActivity 2020-02-26 00:25:26 +01:00
Christoph Loy
a213197027 Remove Butterknife from PreferencesActivity 2020-02-26 00:25:26 +01:00
Christoph Loy
eefb31aaa4 Remove Butterknife from NavigationAdapter 2020-02-26 00:25:26 +01:00
Christoph Loy
077c303a71 Replace Butterknife with Viewbinding in ItemAdapter 2020-02-26 00:25:26 +01:00
Christoph Loy
61a2341893 Enable viewbinding in gradle plugin 2020-02-26 00:25:26 +01:00
Christoph Loy
20c4ea0d0c
Fix lint warning 2020-02-24 22:10:50 +01:00
Christoph Loy
79e630b999
Add basic implementation to support "System default" in dark mode settings 2020-02-24 21:42:07 +01:00
Nextcloud bot
8f7ab6d824 [tx-robot] updated from transifex 2020-02-24 20:05:32 +01:00
stefan-niedermann
98e8754e94 Fix some linter issues
Signed-off-by: stefan-niedermann <info@niedermann.it>
2020-02-24 19:54:58 +01:00
stefan-niedermann
c426e1839c Remove dead test code
Signed-off-by: stefan-niedermann <info@niedermann.it>
2020-02-24 18:50:38 +01:00
stefan-niedermann
75bdb4c2cc Mock TextUtils and moved NoteLinksUtilsTest to test package
Signed-off-by: stefan-niedermann <info@niedermann.it>
2020-02-24 18:48:20 +01:00
Christoph Loy
ea0bfdfd90 Revert unneeded diffs in NoteLinksUtilsTest 2020-02-24 18:25:15 +01:00
Christoph Loy
f61701487c Move NoteLinksUtilsTest back to androidTest and revert to using TextUtils in NoteLinksUtils 2020-02-24 18:25:15 +01:00
Christoph Loy
b88429a200 Remove manual NPE and replace it with Objects#requireNonNull 2020-02-24 18:25:15 +01:00
Christoph Loy
b9f041332f Remove unneeded diffs 2020-02-24 18:25:15 +01:00
Christoph Loy
eb9cba14f3 Move Tests from androidTests to tests 2020-02-24 18:25:15 +01:00
stefan-niedermann
e7ca48e0d5 Use requireX instead of Objects.requireNonNull
Signed-off-by: stefan-niedermann <info@niedermann.it>
2020-02-24 10:56:12 +01:00
Mario Danic
bd0f3fc87d Fix #718
Signed-off-by: Mario Danic <mario@lovelyhq.com>
2020-02-23 20:52:45 +01:00
stefan-niedermann
fee05a32cc Fix missing import
Signed-off-by: stefan-niedermann <info@niedermann.it>
2020-02-23 19:07:42 +01:00
stefan-niedermann
1231664b1d Merge branch 'master' into 354-password-protection
# Conflicts:
#	app/src/main/res/values/strings.xml
2020-02-23 19:06:56 +01:00
stefan-niedermann
d5877c463d Refactoring
Signed-off-by: stefan-niedermann <info@niedermann.it>
2020-02-23 18:16:59 +01:00
stefan-niedermann
a72e2a03d4 Add MarkdownUtilTest
Signed-off-by: stefan-niedermann <info@niedermann.it>
2020-02-23 18:16:07 +01:00
stefan-niedermann
5acec3dc4b Fix unit tests
Signed-off-by: stefan-niedermann <info@niedermann.it>
2020-02-23 17:51:09 +01:00
stefan-niedermann
8848b73d92 Adjust some old unit tests
Signed-off-by: stefan-niedermann <info@niedermann.it>
2020-02-23 17:39:43 +01:00
stefan-niedermann
95658a6d31 Implement menu for context based formatting without selected range
Signed-off-by: stefan-niedermann <info@niedermann.it>
2020-02-23 17:27:29 +01:00
stefan-niedermann
052c6202b3 Implement menu for context based formatting without selected range
Signed-off-by: stefan-niedermann <info@niedermann.it>
2020-02-23 15:22:42 +01:00
stefan-niedermann
13016ea7ba Implement menu for context based formatting without selected range
Signed-off-by: stefan-niedermann <info@niedermann.it>
2020-02-22 11:48:55 +01:00
stefan-niedermann
985a6cd197 Merge remote-tracking branch 'origin/master' 2020-02-22 11:43:46 +01:00
Nextcloud bot
6ff297afdb [tx-robot] updated from transifex 2020-02-22 11:43:33 +01:00
stefan-niedermann
f1a480eb62 Clear Glide cache when manually swipe down to refresh
Signed-off-by: stefan-niedermann <info@niedermann.it>
2020-02-22 11:23:53 +01:00
dependabot-preview[bot]
29b3b7d2e4 Bump fragment from 1.2.1 to 1.2.2
Bumps fragment from 1.2.1 to 1.2.2.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-20 12:49:35 +01:00
dependabot-preview[bot]
dc9bc41efa Bump work-runtime from 2.3.1 to 2.3.2
Bumps work-runtime from 2.3.1 to 2.3.2.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-20 07:51:57 +01:00
stefan-niedermann
76b8416649 Fix #710 NextcloudApiNotResponding
Signed-off-by: stefan-niedermann <info@niedermann.it>
2020-02-19 20:23:53 +01:00
stefan-niedermann
968e96373d Merge remote-tracking branch 'origin/master'
# Conflicts:
#	app/src/main/java/it/niedermann/owncloud/notes/android/activity/ExceptionActivity.java
2020-02-19 20:22:36 +01:00
Nextcloud bot
278179267c [tx-robot] updated from transifex 2020-02-19 20:22:09 +01:00
Nextcloud bot
3cd2756638 [tx-robot] updated from transifex 2020-02-16 15:57:34 +01:00
stefan-niedermann
b672b505f7 version bump to 2.10.2
Signed-off-by: stefan-niedermann <info@niedermann.it>
2020-02-16 15:57:34 +01:00
stefan-niedermann
5855064d9c Fix #730 API Level 15 cannot use ?android: attributes
Signed-off-by: stefan-niedermann <info@niedermann.it>
2020-02-16 15:57:34 +01:00
stefan-niedermann
442b598dc0 Fix NullPointerException
Attempt to invoke interface method 'java.util.Iterator java.util.List.iterator()' on a null object reference

Signed-off-by: stefan-niedermann <info@niedermann.it>
2020-02-16 15:57:07 +01:00
Nextcloud bot
b73d94480a [tx-robot] updated from transifex 2020-02-16 11:24:56 +01:00
stefan-niedermann
96e9b04d5b version bump to 2.10.2
Signed-off-by: stefan-niedermann <info@niedermann.it>
2020-02-16 11:22:14 +01:00
stefan-niedermann
7c6f0392bb Fix #730 API Level 15 cannot use ?android: attributes
Signed-off-by: stefan-niedermann <info@niedermann.it>
2020-02-16 11:20:30 +01:00
stefan-niedermann
b9e7ea606e Fix NullPointerException
Attempt to invoke interface method 'java.util.Iterator java.util.List.iterator()' on a null object reference

Signed-off-by: stefan-niedermann <info@niedermann.it>
2020-02-16 11:01:28 +01:00
stefan-niedermann
4b1c60e874 Use new nextcloud-commons library for uncaught exception handling
https://github.com/stefan-niedermann/nextcloud-commons

Signed-off-by: stefan-niedermann <info@niedermann.it>
2020-02-12 20:17:13 +01:00
stefan-niedermann
e87ddac3a0 Use new nextcloud-commons library for SSO Glide integration
https://github.com/stefan-niedermann/nextcloud-commons

Signed-off-by: stefan-niedermann <info@niedermann.it>
2020-02-12 18:02:44 +01:00
stefan-niedermann
58eaaa84bc Fix #666 Glide does not use SSO network stack
Use new nextcloud-commons library for SSO Glide integration

Signed-off-by: stefan-niedermann <info@niedermann.it>
2020-02-12 13:18:38 +01:00
stefan-niedermann
9560552682 Fix #666 Glide does not use SSO network stack
Signed-off-by: stefan-niedermann <info@niedermann.it>
2020-02-10 14:37:46 +01:00
stefan-niedermann
0bcfc0b14f Fix #666 Glide does not use SSO network stack
Signed-off-by: stefan-niedermann <info@niedermann.it>
2020-02-10 13:50:38 +01:00
Niedermann IT-Dienstleistungen
6a9cf4f5f7
Merge branch 'master' into 354-password-protection 2020-02-07 10:39:47 +01:00
stefan-niedermann
0125009abc version bump to 2.10.1
Signed-off-by: stefan-niedermann <info@niedermann.it>
2020-02-05 20:43:55 +01:00
dependabot-preview[bot]
c94ea2f59e Bump material from 1.0.0 to 1.1.0
Bumps [material](https://github.com/material-components/material-components-android) from 1.0.0 to 1.1.0.
- [Release notes](https://github.com/material-components/material-components-android/releases)
- [Commits](https://github.com/material-components/material-components-android/compare/1.0.0...1.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-05 20:42:18 +01:00
Nextcloud bot
6803804a45 [tx-robot] updated from transifex 2020-02-05 20:41:51 +01:00
stefan-niedermann
e5dfb98972 Do not break push on error (see #713)
https://github.com/stefan-niedermann/nextcloud-notes/pull/721#issuecomment-582457235
Signed-off-by: stefan-niedermann <info@niedermann.it>
2020-02-05 20:34:26 +01:00
stefan-niedermann
800c138e7b Reinstanciate NotesListViewItemTouchHelper everytime the ssoAccount changes
Former behavior:

onCreate: ssoAccount is still null, therefore swiping will not immediately upsync
selectAccount: Didn't affect the swipe behavior and could lead to wrong immediately upsyncs with a wrong account
Signed-off-by: stefan-niedermann <info@niedermann.it>
2020-02-05 20:34:26 +01:00
stefan-niedermann
2ac7bc6c0b Do not break push on error (see #713)
Signed-off-by: stefan-niedermann <info@niedermann.it>
2020-02-05 20:34:26 +01:00