Commit graph

635 commits

Author SHA1 Message Date
Tobias Kaminsky
212b288d4b
Merge pull request #11519 from nextmcloud/nmc/1940-favShownTwice
Favourite shown twice
2023-04-21 15:20:06 +02:00
Tobias Kaminsky
043f6306dd
Merge pull request #11518 from nextmcloud/nmc/1939-syncFolderRuntimeException
User check added when sync folder runs after user clears the data.
2023-04-21 15:19:46 +02:00
Andy Scherzinger
0d58f2d82c
improve spotbug score
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-04-19 12:56:22 +02:00
Andy Scherzinger
86942792d9
Use local for date formattings
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-04-19 12:56:21 +02:00
tobiasKaminsky
0b2665682d
not used static final
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
2023-04-19 12:21:25 +02:00
A200073727
8b41d3133e Code optimization for favorites shown twice in menu. 2023-04-18 19:48:31 +05:30
A117870935
fe08ba12dd Copyright added. 2023-04-13 19:39:17 +05:30
A117870935
4c1581131e Fixed favourites shown twice. 2023-04-13 19:38:34 +05:30
A117870935
b1a1cf3c36 Copyright updated. 2023-04-13 19:28:16 +05:30
A117870935
157872886e User check added when sync folder runs after user clears the data. 2023-04-13 19:24:44 +05:30
Tobias Kaminsky
10034e6bf9
Merge pull request #11402 from nextcloud/loadNotes
when resuming note directly after creating, url is not working anymore, thus we need a new one
2023-04-13 14:43:01 +02:00
Tobias Kaminsky
426669816d
Merge pull request #11321 from eraser2021999/master
Fix issues with Media Tab & performance improvement.
2023-04-12 12:40:03 +02:00
tobiasKaminsky
2c9da26f68 Adopt to latest version
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
2023-03-28 16:59:53 +00:00
DESKTOP-EMSE65H\Archontis
40bfca1a06 add my name to license comment
Signed-off-by: DESKTOP-EMSE65H\Archontis <arxontisk02@gmail.com>
2023-02-27 14:05:01 +02:00
DESKTOP-EMSE65H\Archontis
3de35d2996 Refactor onCreate: extract initTaskRetainerFragment method
This commit extracts the logic to initialize a fragment without UI on a seperate method called `initTaskRetainerFragment`.

Signed-off-by: DESKTOP-EMSE65H\Archontis <arxontisk02@gmail.com>
2023-02-27 14:05:01 +02:00
DESKTOP-EMSE65H\Archontis
8b571bb58c Refactor onCreate: extract initUI method
This commit:
- Creates a `initUI()` method to handle the setup of the toolbar and UI components
- Removes corresponding code from `onCreate()` and replaced it with a call to the new method
- Improves readability of `onCreate()` method

This change does not affect the functionality of the original code.

Signed-off-by: DESKTOP-EMSE65H\Archontis <arxontisk02@gmail.com>
2023-02-27 14:05:01 +02:00
DESKTOP-EMSE65H\Archontis
4cdfa994e9 Refactor onCreate method: extract initLayout method
This commit refactors the onCreate() method by exctracting a new method to handle the layout inflation and setting of the content view. The readability of onCreate method is improved.

This change does not affect the functionality of the original code.

Signed-off-by: DESKTOP-EMSE65H\Archontis <arxontisk02@gmail.com>
2023-02-27 14:05:01 +02:00
DESKTOP-EMSE65H\Archontis
3316726a1d Refactor onCreate() to extract method for loading saved instance state
This commit refactors the onCreate() method by extracting the code responsible for loading the saved instance state into a separate method named loadSavedInstanceState(). This improves the readability and maintainability of the code by reducing the complexity of the onCreate() method and separating concerns. The loadSavedInstanceState() method simply takes a Bundle parameter and initializes the relevant instance variables based on the saved state. The onCreate() method now simply calls the super.onCreate() method, sets the default theme, and initializes the sync broadcast receiver.

This change does not affect the functionality of the original code.

Signed-off-by: DESKTOP-EMSE65H\Archontis <arxontisk02@gmail.com>
2023-02-27 14:05:01 +02:00
Álvaro Brey
f91abefc6d
Merge pull request #11149 from nextcloud/mTimestamp
mTime: use typed parameter (long) instead of String
2023-02-22 17:21:13 +01:00
Álvaro Brey
a8401a2356
Merge pull request #11411 from nextcloud/fix/fsu-encryption-npe
fix: FileStorageUtils: prevent NPE when checking encryption status
2023-02-22 16:46:37 +01:00
tobiasKaminsky
860113e842
mTime: use typed parameter (long) instead of String
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
2023-02-22 14:48:03 +01:00
Álvaro Brey
a9e4ba9abd
fix: FileStorageUtils: prevent NPE when checking encryption status
This can happen if the parent of a file has been deleted.

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
2023-02-21 15:14:29 +01:00
tobiasKaminsky
5c1c97efa1
when resuming note directly after creating, url is not working anymore, thus we need a new one
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
2023-02-20 09:32:04 +01:00
Álvaro Brey
5bbb26c23c
Remove unused imports
Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
2023-02-17 11:02:45 +01:00
Álvaro Brey
a9e1609f30
feat(download): Show specific error message when download fails due to invalid local filename
Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
2023-02-17 11:02:45 +01:00
Álvaro Brey
0445eb3768
feat(download): Show specific error if download fails due to local file creation failure
Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
2023-02-17 11:02:45 +01:00
Álvaro Brey
0946399ba9
Use adaptive colors for pre-login screens (#11362)
* Use unmodified primary color as background through M3 utils for login screen

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>

* Use color utils to fix colors in AuthenticatorActivity for light primaries

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>

* WhatsNewActivity: fix for light primary color, port to viewbinding

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>

* Fix status bar colors in pre-login screens

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>

* FeatureFragment: fix spotbugs

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>

* Update login screenshot

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>

* build: Set ui dep to 0.5.0 tag

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>

---------

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
2023-02-13 12:39:27 +01:00
tobiasKaminsky
cf28c7e7d2
After removing last favorite item show correct placeholder
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
2023-02-09 16:18:58 +01:00
Tobias Kaminsky
08aa51c411
Merge pull request #11266 from nextcloud/secureFiledrop
Secure filedrop
2023-02-08 13:54:25 +01:00
Tobias Kaminsky
d5e3f4405d
Merge pull request #11339 from nextcloud/sharedView
Fix shared view
2023-02-08 10:49:41 +01:00
tobiasKaminsky
1af18ad3cd
Secure filedrop
add tests
Rename .java to .kt
only show secure filedrop / sharing on NC26+
Refactor EncryptionUtils to avoid having test arguments on public method

Added secure filedrop

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
Signed-off-by: Tobias Kaminsky <tobias@nextcloud.com>
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
2023-02-07 09:44:07 +01:00
Bogdan Coticopol
3ce6a16bd8 Signed-off-by: Bogdan Coticopol <bcoticopol@gmail.com>
Minor refactoring on Media Tab.
2023-02-05 19:51:42 +02:00
tobiasKaminsky
d68e79d547
set remoteId as we need it for thumbnails
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
2023-02-02 10:55:44 +01:00
tobiasKaminsky
395af69162
Fix toggling favorite on sharing
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
2023-02-02 10:55:44 +01:00
tobiasKaminsky
113f974fd0
fix interrupted e2e uploads
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
2023-02-02 08:49:33 +01:00
Álvaro Brey
36c8b404c6
Merge pull request #11267 from nextcloud/dependabot/gradle/me.zhanghai.android.fastscroll-library-1.2.0
Build(deps): Bump me.zhanghai.android.fastscroll:library from 1.1.8 to 1.2.0
2023-01-30 15:27:10 +01:00
Bogdan Coticopol
2bf3a5b142 Signed-off-by: Bogdan Coticopol <bcoticopol@gmail.com>
Fix issues with Media Tab & performance improvement.
2023-01-29 21:59:39 +02:00
Álvaro Brey
1e0d48f945
Fix compilation error for GalleryFastScrollViewHelper
Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
2023-01-27 12:09:52 +01:00
Álvaro Brey
0f51646d3c
Close scan activity if camera permission is denied
Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
2023-01-27 11:55:35 +01:00
Álvaro Brey
fc9139f4e2
Remove useless todo, handle request type event
Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
2023-01-27 11:55:34 +01:00
Álvaro Brey
1917198305
Move optional appscan feature to a separate module to avoid duplicating code between variants
This now uses a AppScanOptionalFeature injected interface that is satisfied by each module,
reducing the duplicated code to a minimum

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
2023-01-27 11:55:32 +01:00
Álvaro Brey
9478fb15e9
Improve export type selection dialog
Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
2023-01-27 11:54:41 +01:00
Álvaro Brey
cd51c4f5df
Allow uploading document as multiple images instead of single PDF
Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
2023-01-27 11:54:41 +01:00
Álvaro Brey
41ef0614e0
Allow multi-page PDF scans
Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
2023-01-27 11:54:41 +01:00
Álvaro Brey
3d291d8fec
Bump OUTDATED_SERVER_VERSION to Nextcloud 23, as it has reached EOL
Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
2023-01-25 14:41:06 +01:00
Álvaro Brey
b30b8ebf1f
Merge pull request #10558 from nextcloud/doNotUploadFolderWhenEncryption
When uploading files to an encrypted folder do not allow to upload entire folders
2023-01-25 14:26:54 +01:00
Álvaro Brey
f115883df2
Merge pull request #11138 from nextcloud/favoriteInShares
Shows favorite state in share overview
2023-01-25 12:46:07 +01:00
tobiasKaminsky
d4e9ef203f When uploading files to an encrypted folder do not allow to upload entire folders
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
2023-01-25 11:28:48 +00:00
tobiasKaminsky
4f1d0347f4 Uses: https://github.com/nextcloud/android-library/pull/968
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
2023-01-25 09:58:50 +01:00
tobiasKaminsky
f18225eda6
Show "unset encryption" only when E2E is setup
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
2023-01-25 09:56:55 +01:00