Compare commits

...
Author SHA1 Message Date
Tobias Kaminsky ebb74bc8a0 daily dev 20220126
Fix default visibility of recently modified
Remove recently added search
OCFileListFragment: restore search event on view restored
OCFileListFragment: add recently modified to the list of valid search events
Update translations
Update Nextcloud Android library
Update 3rd-party dependencies
2022-01-26 05:38:35 +01:00
Tobias Kaminsky 0e8fbe73b1 Merge remote-tracking branch 'origin/master' into dev 2022-01-26 05:31:19 +01:00
Nextcloud bot 750864d951 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-01-26 03:55:40 +00:00
Álvaro Brey d057d48a89 Merge pull request #9745 from nextcloud/dependabot/gradle/mockitoVersion-4.3.0
Bump mockitoVersion from 4.2.0 to 4.3.0
2022-01-25 09:44:30 +01:00
Álvaro Brey a8feb7bb66 Merge pull request #9718 from nextcloud/fix/recent-files
Fix minor issues with recently modified view
2022-01-25 09:13:58 +01:00
Álvaro Brey b7f1ebd74b Merge pull request #9742 from nextcloud/fix/analysis-on-push
Run analysis workflow on push too
2022-01-25 09:07:25 +01:00
Tobias Kaminsky fe28ce3190 daily dev 20220125
Bump versions for fastlane and plugins
Update Nextcloud Android library
Update 3rd-party dependencies
2022-01-25 06:53:02 +01:00
Tobias Kaminsky dc6ea6cd0e Merge remote-tracking branch 'origin/master' into dev 2022-01-25 05:37:54 +01:00
dependabot[bot] 4c44d469e0 Bump mockitoVersion from 4.2.0 to 4.3.0
Bumps `mockitoVersion` from 4.2.0 to 4.3.0.

Updates `mockito-core` from 4.2.0 to 4.3.0
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v4.2.0...v4.3.0)

Updates `mockito-android` from 4.2.0 to 4.3.0
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v4.2.0...v4.3.0)

---
updated-dependencies:
- dependency-name: org.mockito:mockito-core
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: org.mockito:mockito-android
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-01-25 02:04:50 +00:00
Álvaro Brey Vilas 22367838ab Run analysis workflow on push too
Otherwise baseline results aren't generated

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-24 16:25:33 +01:00
Tobias Kaminsky 2476be69ba Merge pull request #9737 from nextcloud/chore/bump-fastlane
Bump versions for fastlane and plugins
2022-01-24 14:51:09 +01:00
Álvaro Brey Vilas 1a735f1840 Fix default visibility of recently modified
Should be visible unless setup.xml disables is (which it does by default)

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-24 13:14:01 +01:00
Álvaro Brey Vilas c45dd9f5ff Remove recently added search
Was never fully implemented. Discarding in favor of recently modified.

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-24 13:14:01 +01:00
Álvaro Brey Vilas 63c780999d OCFileListFragment: restore search event on view restored
Partially reverts https://github.com/nextcloud/android/pull/9427, which deleted too much stuff

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-24 13:14:00 +01:00
Álvaro Brey Vilas 6a45a90019 OCFileListFragment: add recently modified to the list of valid search events
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-24 13:14:00 +01:00
Álvaro Brey Vilas 93f973cdc2 Bump versions for fastlane and plugins
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-24 12:09:29 +01:00
Álvaro Brey dd94e20045 Merge pull request #9734 from nextcloud/dependabot/gradle/com.github.spotbugs.snom-spotbugs-gradle-plugin-5.0.5
Bump spotbugs-gradle-plugin from 5.0.4 to 5.0.5
2022-01-24 09:53:05 +01:00
dependabot[bot] f0ea41a56b Bump spotbugs-gradle-plugin from 5.0.4 to 5.0.5
Bumps [spotbugs-gradle-plugin](https://github.com/spotbugs/spotbugs-gradle-plugin) from 5.0.4 to 5.0.5.
- [Release notes](https://github.com/spotbugs/spotbugs-gradle-plugin/releases)
- [Commits](https://github.com/spotbugs/spotbugs-gradle-plugin/compare/5.0.4...5.0.5)

---
updated-dependencies:
- dependency-name: com.github.spotbugs.snom:spotbugs-gradle-plugin
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-01-24 08:13:52 +00:00
Tobias Kaminsky 21e756cf88 daily dev 20220124
Update translations
Update Nextcloud Android library
2022-01-24 06:48:45 +01:00
Tobias Kaminsky f7e53a17c0 Merge remote-tracking branch 'origin/master' into dev 2022-01-24 05:35:13 +01:00
Nextcloud bot 43610aedba [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-01-24 03:52:57 +00:00
Tobias Kaminsky 975ee12cc0 daily dev 20220122
Bump version to 3.20.0 on master
2022-01-22 05:37:41 +01:00
Tobias Kaminsky c2cd8e2486 Merge remote-tracking branch 'origin/master' into dev 2022-01-22 05:30:57 +01:00
Tobias Kaminsky 70b93ed89c Merge pull request #9723 from nextcloud/bump-minor-version
Bump version to 3.20.0 on master
2022-01-21 08:58:47 +01:00
Tobias Kaminsky add4b08802 Merge pull request #9721 from nextcloud/chore/temurin
workflows: Use temurin JDK instead of adopt
2022-01-21 08:33:12 +01:00
Tobias Kaminsky e0d2670a5e daily dev 20220121
Restore library version
Use capability in SearchRemoteOperation
Clear DNS cache on network changes
Update translations
Update Nextcloud Android library
2022-01-21 06:44:26 +01:00
Tobias Kaminsky 68b08163b7 Merge remote-tracking branch 'origin/master' into dev 2022-01-21 05:33:52 +01:00
Nextcloud bot d8cbde9105 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-01-21 03:52:14 +00:00
Álvaro Brey Vilas f4e979a385 Bump version to 3.20.0 on master
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-20 15:00:46 +01:00
Álvaro Brey Vilas 417dee2535 workflows: Use temurin JDK instead of adopt
Ref: https://blog.adoptopenjdk.net/2021/08/goodbye-adoptopenjdk-hello-adoptium/

tl;dr: AdoptOpenJDK is discontinued and recommendation is to use Eclipse Temurin instead

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-20 11:01:09 +01:00
Álvaro Brey 717ad59140 Merge pull request #9651 from nextcloud/gallerySearch
Use capability in SearchRemoteOperation
2022-01-20 10:59:29 +01:00
Tobias Kaminsky 84507a39aa Merge pull request #9719 from nextcloud/fix/ipv4-cache
Clear DNS cache on network changes
2022-01-20 09:42:56 +01:00
Álvaro Brey Vilas 7d58967517 Restore library version
Required PR has been merged on library

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-20 09:34:32 +01:00
tobiasKaminsky a9cec44b1f Use capability in SearchRemoteOperation
Signed-off-by: tobiasKaminsky <[email protected]>
2022-01-20 09:10:33 +01:00
Tobias Kaminsky 7b30483a52 Create scorecards-analysis.yml 2022-01-20 07:14:36 +01:00
Tobias Kaminsky 2d603b1cfd daily dev 20220120
Remove IRC info from app and docs
Update translations
Update Nextcloud Android library
2022-01-20 06:45:11 +01:00
Tobias Kaminsky ec33e5591d Merge remote-tracking branch 'origin/master' into dev 2022-01-20 05:33:39 +01:00
Nextcloud bot 2956fafabc [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-01-20 03:54:30 +00:00
Álvaro Brey Vilas 7299b598d4 Clear DNS cache on network changes
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-19 16:34:09 +01:00
Álvaro Brey 648c104cd9 Merge pull request #9121 from redgloboli/redgloboli-no-more-freenode
Update README.md
2022-01-19 11:11:39 +01:00
Tobias Kaminsky 4a65a7c434 daily dev 20220119
remove not used videos drawer entry (#9708)
SessionMixin: set currentAccount to null when no accounts are available
FileContentProvider: make projection map unmodifiable
FileContentProvider: fix formatting
FileContentProvider: make projection arrays and map static
FileContentProvider: use projections for queries
2022-01-19 05:37:47 +01:00
Tobias Kaminsky 1e3a4a4a38 Merge remote-tracking branch 'origin/master' into dev 2022-01-19 05:31:07 +01:00
Álvaro Brey Vilas ea0bc503e0 Update CommunityActivity screenshot
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-18 18:20:17 +01:00
redgloboli 0f62399615 Remove IRC info from app and docs
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-18 16:26:58 +01:00
Álvaro Brey c6b9da0ee3 Merge pull request #9694 from nextcloud/fix/sqlite-row-too-big
FileContentProvider: use projections for helper queries
2022-01-18 14:48:40 +01:00
Álvaro Brey VilasandTobias Kaminsky 2d544486d3 Add integration test for folders with large amounts of files
This test reproduces the SQLiteCursor crashes.

Co-authored-by: Tobias Kaminsky <[email protected]>
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-18 14:14:11 +01:00
Tobias KaminskyandÁlvaro Brey Vilas b80baef535 remove not used videos drawer entry (#9708)
* remove not used videos drawer entry

Signed-off-by: tobiasKaminsky <[email protected]>

* Remove unused resource

Signed-off-by: Álvaro Brey Vilas <[email protected]>

Co-authored-by: Álvaro Brey Vilas <[email protected]>
2022-01-18 09:05:02 +01:00
Tobias Kaminsky ae7fb23a6b Merge pull request #9711 from nextcloud/chore/codecov-improvements
Codecov: don't annotate diffs
2022-01-18 08:39:45 +01:00
Tobias Kaminsky e091a15089 Merge pull request #9710 from nextcloud/fix/crash-on-remove-all-accounts
SessionMixin: set currentAccount to null when no accounts are available
2022-01-18 08:38:29 +01:00
Tobias Kaminsky 602005d51a daily dev 20220118
ConflictsResolveActivity: remove upload is KEEP_SERVER and shouldDeleteLocal
removed a check in KEEP_SERVER switch clause. 1) The check prevents solving file conflicts (keep server) correctly. 2) The check involves FileUploader.LOCAL_BEHAVIOUR_DELETE, intended use is for media file uploads.
:Conflict files are removed from the upload storage manager after downloaded successfully.
Fix NPE in BackupFragment when fragment exits while refresh is happening
Screenshot tests: Improve Activities activity tests
Update translations
Update 3rd-party dependencies
2022-01-18 05:37:37 +01:00
Tobias Kaminsky c6f6f15720 Merge remote-tracking branch 'origin/master' into dev 2022-01-18 05:31:01 +01:00
Nextcloud bot 8d868c3fff [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-01-18 04:11:52 +00:00
Álvaro Brey Vilas 2cb028eaee Codecov: don't annotate diffs
It makes it really annoying to read diffs when our coverage isn't that good yet.

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-17 20:08:45 +01:00
Álvaro Brey 92f3b6df87 Merge pull request #9691 from nextcloud/fix/sync-conflict
Improvements in sync conflict resolution
2022-01-17 20:03:24 +01:00
Álvaro Brey Vilas 107dcd35c4 SessionMixin: set currentAccount to null when no accounts are available
Prevents a crash when removing the last account

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-17 16:02:05 +01:00
Álvaro Brey 641b09cd4f Merge pull request #9706 from nextcloud/dependabot/gradle/byteBuddyVersion-1.12.7
Bump byteBuddyVersion from 1.12.6 to 1.12.7
2022-01-17 15:16:32 +01:00
Álvaro Brey 1419406cd2 Merge pull request #9606 from nextcloud/fix/backup-fragment-crash
Fix NPE in BackupFragment when fragment exits while refresh is happening
2022-01-17 14:53:35 +01:00
Álvaro Brey Vilas c5b75f68b0 ConflictsResolveActivity: remove upload is KEEP_SERVER and shouldDeleteLocal
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-17 13:30:47 +00:00
wknds b4c1620aed removed a check in KEEP_SERVER switch clause. 1) The check prevents solving file conflicts (keep server) correctly. 2) The check involves FileUploader.LOCAL_BEHAVIOUR_DELETE, intended use is for media file uploads. 2022-01-17 13:30:47 +00:00
wknds 8ce7733563 revert Project.xml 2022-01-17 13:30:47 +00:00
wknds e6b6c6ff56 :Conflict files are removed from the upload storage manager after downloaded successfully. 2022-01-17 13:30:47 +00:00
Álvaro Brey 60e44986a0 Merge pull request #9692 from nextcloud/chore/screenshot-test-activities
Screenshot tests: Improve Activities activity tests
2022-01-17 14:29:31 +01:00
Tobias Kaminsky fd22f9f04d Merge pull request #9590 from nextcloud/it-timeout
DocumentsStorageProviderIT: add timeout to testServerChangedFileContent()
2022-01-17 10:30:56 +01:00
Álvaro Brey 46f253f515 Merge pull request #9707 from nextcloud/dependabot/gradle/pl.droidsonroids.gif-android-gif-drawable-1.2.24
Bump android-gif-drawable from 1.2.23 to 1.2.24
2022-01-17 10:25:27 +01:00
Álvaro Brey Vilas 6f1d434e80 DocumentsStorageProviderIT: add timeout to testServerChangedFileContent()
This test sometimes hangs forever, resulting in (for example) CI builds being killed.
This way, only this test fails and the rest of the suite continues.

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-17 08:57:45 +00:00
dependabot[bot] e14e91e0c1 Bump android-gif-drawable from 1.2.23 to 1.2.24
Bumps [android-gif-drawable](https://github.com/koral--/android-gif-drawable) from 1.2.23 to 1.2.24.
- [Release notes](https://github.com/koral--/android-gif-drawable/releases)
- [Changelog](https://github.com/koral--/android-gif-drawable/blob/dev/CHANGELOG.md)
- [Commits](https://github.com/koral--/android-gif-drawable/compare/v1.2.23...v1.2.24)

---
updated-dependencies:
- dependency-name: pl.droidsonroids.gif:android-gif-drawable
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-01-17 02:06:28 +00:00
dependabot[bot] adb4edbafe Bump byteBuddyVersion from 1.12.6 to 1.12.7
Bumps `byteBuddyVersion` from 1.12.6 to 1.12.7.

Updates `byte-buddy` from 1.12.6 to 1.12.7
- [Release notes](https://github.com/raphw/byte-buddy/releases)
- [Changelog](https://github.com/raphw/byte-buddy/blob/master/release-notes.md)
- [Commits](https://github.com/raphw/byte-buddy/compare/byte-buddy-1.12.6...byte-buddy-1.12.7)

Updates `byte-buddy-android` from 1.12.6 to 1.12.7
- [Release notes](https://github.com/raphw/byte-buddy/releases)
- [Changelog](https://github.com/raphw/byte-buddy/blob/master/release-notes.md)
- [Commits](https://github.com/raphw/byte-buddy/compare/byte-buddy-1.12.6...byte-buddy-1.12.7)

---
updated-dependencies:
- dependency-name: net.bytebuddy:byte-buddy
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: net.bytebuddy:byte-buddy-android
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-01-17 02:06:23 +00:00
Álvaro Brey Vilas 33a2043d3f Analysis workflow: correct head ref for branch
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-14 13:08:21 +01:00
Álvaro Brey Vilas f83ccb781d Fix NPE in BackupFragment when fragment exits while refresh is happening
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-14 10:48:16 +00:00
Álvaro Brey Vilas 23a67aea4a FileContentProvider: make projection map unmodifiable
Just in case

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-14 08:54:33 +01:00
Álvaro Brey Vilas 94533fd8aa FileContentProvider: fix formatting
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-14 08:51:54 +01:00
Álvaro Brey Vilas 45b7c222e6 FileContentProvider: make projection arrays and map static
This improves performance as they aren't created on every call

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-13 16:12:03 +01:00
Álvaro Brey Vilas 405789dc9b FileContentProvider: use projections for queries
This limits the amount of data in the resulting cursor and helps prevent CursorTooBig exceptions.

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-13 15:47:40 +01:00
Álvaro Brey Vilas d7d029b6ad ActivitiesActivityIT: add waitForIdleSync() after sleeps
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-13 12:48:16 +01:00
Álvaro Brey Vilas 5631d79b41 Screenshot tests: Improve Activities activity tests
Force-close snackbar to not have the timing break tests

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-13 11:07:47 +01:00
58 changed files with 382 additions and 211 deletions

No files matched your search

+3
View File
@@ -16,6 +16,9 @@ comment:
layout: "header, diff, changes, uncovered, tree"
behavior: default
github_checks:
annotations: false
ignore:
- "src/main/res/values*/*"
+21 -2
View File
@@ -3,6 +3,8 @@ name: "Analysis"
on:
pull_request:
branches: [ master, stable-* ]
push:
branches: [ master, stable-* ]
jobs:
analysis:
@@ -12,10 +14,27 @@ jobs:
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: "adopt"
distribution: "temurin"
java-version: 11
- name: Setup variables
id: get-vars
run: |
if [ -z "$GITHUB_HEAD_REF" ]; then
# push
echo "::set-output name=branch::$GITHUB_REF_NAME"
echo "::set-output name=pr::$GITHUB_RUN_ID"
else
# pull request
echo "::set-output name=branch::$GITHUB_HEAD_REF"
echo "::set-output name=pr::${{ github.event.pull_request.number }}"
fi
- name: Show variables
run: |
echo "BRANCH: ${{ steps.get-vars.outputs.branch }}"
echo "PR: ${{ steps.get-vars.outputs.pr }}"
echo "RUN NUMBER: $GITHUB_RUN_NUMBER"
- name: Run analysis wrapper
run: |
mkdir -p $HOME/.gradle
echo "org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError" > $HOME/.gradle/gradle.properties
scripts/analysis/analysis-wrapper.sh ${{ secrets.GIT_USERNAME }} ${{ secrets.GIT_TOKEN }} $GITHUB_REF ${{ secrets.LOG_USERNAME }} ${{ secrets.LOG_PASSWORD }} $GITHUB_RUN_NUMBER ${{ github.event.pull_request.number }}
scripts/analysis/analysis-wrapper.sh ${{ secrets.GIT_USERNAME }} ${{ secrets.GIT_TOKEN }} ${{ steps.get-vars.outputs.branch }} ${{ secrets.LOG_USERNAME }} ${{ secrets.LOG_PASSWORD }} $GITHUB_RUN_NUMBER ${{ steps.get-vars.outputs.pr }}
+1 -1
View File
@@ -16,7 +16,7 @@ jobs:
- name: set up JDK 11
uses: actions/setup-java@v2
with:
distribution: "adopt"
distribution: "temurin"
java-version: 11
- name: Build ${{ matrix.flavor }}
run: |
+1 -1
View File
@@ -16,7 +16,7 @@ jobs:
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: "adopt"
distribution: "temurin"
java-version: 11
- name: Check ${{ matrix.task }}
run: ./gradlew ${{ matrix.task }}
File renamed without changes.
+1 -1
View File
@@ -17,7 +17,7 @@ jobs:
if: ${{ steps.check-secrets.outputs.ok == 'true' }}
uses: actions/setup-java@v2
with:
distribution: "adopt"
distribution: "temurin"
java-version: 11
- name: Build QA
if: ${{ steps.check-secrets.outputs.ok == 'true' }}
+55
View File
@@ -0,0 +1,55 @@
name: Scorecards supply-chain security
on:
# Only the default branch is supported.
branch_protection_rule:
schedule:
- cron: '33 1 * * 5'
push:
branches: [ master ]
# Declare default permissions as read only.
permissions: read-all
jobs:
analysis:
name: Scorecards analysis
runs-on: ubuntu-latest
permissions:
# Needed to upload the results to code-scanning dashboard.
security-events: write
actions: read
contents: read
steps:
- name: "Checkout code"
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
with:
persist-credentials: false
- name: "Run analysis"
uses: ossf/scorecard-action@e3e75cf2ffbf9364bbff86cdbdf52b23176fe492 # v1.0.1
with:
results_file: results.sarif
results_format: sarif
# Read-only PAT token. To create it,
# follow the steps in https://github.com/ossf/scorecard-action#pat-token-creation.
repo_token: ${{ secrets.SCORECARD_READ_TOKEN }}
# Publish the results to enable scorecard badges. For more details, see
# https://github.com/ossf/scorecard-action#publishing-results.
# For private repositories, `publish_results` will automatically be set to `false`,
# regardless of the value entered here.
publish_results: false
# Upload the results as artifacts (optional).
- name: "Upload artifact"
uses: actions/upload-artifact@82c141cc518b40d92cc801eee768e7aafc9c2fa2 # v2.3.1
with:
name: SARIF file
path: results.sarif
retention-days: 5
# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@5f532563584d71fdef14ee64d17bafb34f751ce5 # v1.0.26
with:
sarif_file: results.sarif
+1 -1
View File
@@ -34,7 +34,7 @@ jobs:
- uses: actions/setup-java@v2
with:
distribution: "adopt"
distribution: "temurin"
java-version: 11
- name: create AVD and generate snapshot for caching
-4
View File
@@ -1,9 +1,5 @@
# [Nextcloud](https://nextcloud.com) Android app
[![irc](https://img.shields.io/badge/IRC-%23nextcloud%20on%20freenode-orange.svg)](https://webchat.freenode.net/?channels=nextcloud)
[![irc](https://img.shields.io/badge/IRC-%23nextcloud--mobile%20on%20freenode-blue.svg)](https://webchat.freenode.net/?channels=nextcloud-mobile)
# Index
1. [Guidelines](#guidelines)
1. [Issue reporting](#issue-reporting)
+26 -22
View File
@@ -8,23 +8,23 @@ GEM
artifactory (3.0.15)
atomos (0.1.3)
aws-eventstream (1.2.0)
aws-partitions (1.541.0)
aws-sdk-core (3.124.0)
aws-partitions (1.549.0)
aws-sdk-core (3.125.5)
aws-eventstream (~> 1, >= 1.0.2)
aws-partitions (~> 1, >= 1.525.0)
aws-sigv4 (~> 1.1)
jmespath (~> 1.0)
aws-sdk-kms (1.52.0)
aws-sdk-core (~> 3, >= 3.122.0)
aws-sdk-kms (1.53.0)
aws-sdk-core (~> 3, >= 3.125.0)
aws-sigv4 (~> 1.1)
aws-sdk-s3 (1.109.0)
aws-sdk-core (~> 3, >= 3.122.0)
aws-sdk-s3 (1.111.2)
aws-sdk-core (~> 3, >= 3.125.0)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.4)
aws-sigv4 (1.4.0)
aws-eventstream (~> 1, >= 1.0.2)
babosa (1.0.4)
claide (1.0.3)
claide (1.1.0)
colored (1.2)
colored2 (3.1.2)
commander (4.6.0)
@@ -36,17 +36,18 @@ GEM
unf (>= 0.0.5, < 1.0.0)
dotenv (2.7.6)
emoji_regex (3.2.3)
excon (0.89.0)
faraday (1.8.0)
excon (0.90.0)
faraday (1.9.3)
faraday-em_http (~> 1.0)
faraday-em_synchrony (~> 1.0)
faraday-excon (~> 1.1)
faraday-httpclient (~> 1.0.1)
faraday-httpclient (~> 1.0)
faraday-multipart (~> 1.0)
faraday-net_http (~> 1.0)
faraday-net_http_persistent (~> 1.1)
faraday-net_http_persistent (~> 1.0)
faraday-patron (~> 1.0)
faraday-rack (~> 1.0)
multipart-post (>= 1.2, < 3)
faraday-retry (~> 1.0)
ruby2_keywords (>= 0.0.4)
faraday-cookie_jar (0.0.7)
faraday (>= 0.8.0)
@@ -55,14 +56,17 @@ GEM
faraday-em_synchrony (1.0.0)
faraday-excon (1.1.0)
faraday-httpclient (1.0.1)
faraday-multipart (1.0.3)
multipart-post (>= 1.2, < 3)
faraday-net_http (1.0.1)
faraday-net_http_persistent (1.2.0)
faraday-patron (1.0.0)
faraday-rack (1.0.0)
faraday-retry (1.0.3)
faraday_middleware (1.2.0)
faraday (~> 1.0)
fastimage (2.2.5)
fastlane (2.199.0)
fastimage (2.2.6)
fastlane (2.201.1)
CFPropertyList (>= 2.3, < 4.0.0)
addressable (>= 2.8, < 3.0.0)
artifactory (~> 3.0)
@@ -101,11 +105,11 @@ GEM
xcodeproj (>= 1.13.0, < 2.0.0)
xcpretty (~> 0.3.0)
xcpretty-travis-formatter (>= 0.0.3)
fastlane-plugin-huawei_appgallery_connect (1.0.17)
fastlane-plugin-huawei_appgallery_connect (1.0.18)
gh_inspector (1.1.3)
google-apis-androidpublisher_v3 (0.14.0)
google-apis-androidpublisher_v3 (0.15.0)
google-apis-core (>= 0.4, < 2.a)
google-apis-core (0.4.1)
google-apis-core (0.4.2)
addressable (~> 2.5, >= 2.5.1)
googleauth (>= 0.16.2, < 2.a)
httpclient (>= 2.8.1, < 3.a)
@@ -114,11 +118,11 @@ GEM
retriable (>= 2.0, < 4.a)
rexml
webrick
google-apis-iamcredentials_v1 (0.9.0)
google-apis-iamcredentials_v1 (0.10.0)
google-apis-core (>= 0.4, < 2.a)
google-apis-playcustomapp_v1 (0.6.0)
google-apis-playcustomapp_v1 (0.7.0)
google-apis-core (>= 0.4, < 2.a)
google-apis-storage_v1 (0.10.0)
google-apis-storage_v1 (0.11.0)
google-apis-core (>= 0.4, < 2.a)
google-cloud-core (1.6.0)
google-cloud-env (~> 1.0)
@@ -126,7 +130,7 @@ GEM
google-cloud-env (1.5.0)
faraday (>= 0.17.3, < 2.0)
google-cloud-errors (1.2.0)
google-cloud-storage (1.35.0)
google-cloud-storage (1.36.0)
addressable (~> 2.8)
digest-crc (~> 0.4)
google-apis-iamcredentials_v1 (~> 0.1)
@@ -145,7 +149,7 @@ GEM
http-cookie (1.0.4)
domain_name (~> 0.5)
httpclient (2.8.3)
jmespath (1.4.0)
jmespath (1.5.0)
json (2.6.1)
jwt (2.3.0)
memoist (0.16.2)
+2 -3
View File
@@ -1,6 +1,6 @@
# [Nextcloud](https://nextcloud.com) Android app :iphone:
[![Build Status](https://drone.nextcloud.com/api/badges/nextcloud/android/status.svg)](https://drone.nextcloud.com/nextcloud/android) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/80401cb343854343b4d94acbfb72d3ec)](https://www.codacy.com/app/Nextcloud/android?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=nextcloud/android&amp;utm_campaign=Badge_Grade) [![Releases](https://img.shields.io/github/release/nextcloud/android.svg)](https://github.com/nextcloud/android/releases/latest) [![irc](https://img.shields.io/badge/IRC-%23nextcloud--mobile%20on%20freenode-blue.svg)](https://webchat.freenode.net/?channels=nextcloud-mobile)
[![Build Status](https://drone.nextcloud.com/api/badges/nextcloud/android/status.svg)](https://drone.nextcloud.com/nextcloud/android) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/80401cb343854343b4d94acbfb72d3ec)](https://www.codacy.com/app/Nextcloud/android?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=nextcloud/android&amp;utm_campaign=Badge_Grade) [![Releases](https://img.shields.io/github/release/nextcloud/android.svg)](https://github.com/nextcloud/android/releases/latest)
[<img src="https://play.google.com/intl/en_us/badges/images/generic/en_badge_web_generic.png"
alt="Download from Google Play"
@@ -16,7 +16,6 @@
## How to contribute :rocket:
If you want to [contribute](https://nextcloud.com/contribute/) to Nextcloud, you are very welcome:
- on our IRC channels [![irc](https://img.shields.io/badge/IRC-%23nextcloud%20on%20freenode-orange.svg)](https://webchat.freenode.net/?channels=nextcloud) and [![irc](https://img.shields.io/badge/IRC-%23nextcloud--mobile%20on%20freenode-blue.svg)](https://webchat.freenode.net/?channels=nextcloud-mobile) on freenode
- our forum at https://help.nextcloud.com
- for translations of the app on [Transifex](https://www.transifex.com/nextcloud/nextcloud/android/)
- opening issues and PRs (including a corresponding issue)
@@ -75,7 +74,7 @@ or
## Support :rescue_worker_helmet:
If you need assistance or want to ask a question about the Android app, you are welcome to [ask for support](https://help.nextcloud.com/c/clients/android) in our Forums or the [IRC-Channel](https://webchat.freenode.net/?channels=nextcloud-mobile). If you have found a bug, feel free to [open a new Issue on GitHub](https://github.com/nextcloud/android/issues). Keep in mind, that this repository only manages the Android app. If you find bugs or have problems with the server/backend, you should ask the [Nextcloud server team](https://github.com/nextcloud/server) for help!
If you need assistance or want to ask a question about the Android app, you are welcome to [ask for support](https://help.nextcloud.com/c/clients/android) in our Forums. If you have found a bug, feel free to [open a new Issue on GitHub](https://github.com/nextcloud/android/issues). Keep in mind, that this repository only manages the Android app. If you find bugs or have problems with the server/backend, you should ask the [Nextcloud server team](https://github.com/nextcloud/server) for help!
## Remarks :scroll:
+8 -8
View File
@@ -21,7 +21,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:7.0.4'
classpath 'com.hiya:jacoco-android:0.2'
classpath 'com.github.spotbugs.snom:spotbugs-gradle-plugin:5.0.4'
classpath 'com.github.spotbugs.snom:spotbugs-gradle-plugin:5.0.5'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.19.0"
classpath "commons-httpclient:commons-httpclient:3.1@jar" // remove after entire switch to lib v2
@@ -64,11 +64,11 @@ ext {
daggerVersion = "2.40.5"
markwonVersion = "4.6.2"
prismVersion = "2.0.0"
androidLibraryVersion ="1b0e418e6843f56c62ee37854a8c167ed7aadd72"
mockitoVersion = "4.2.0"
androidLibraryVersion ="c5f144ebab033789996dbfe4cd12c65175b6835f"
mockitoVersion = "4.3.0"
mockkVersion = "1.12.2"
powermockVersion = "2.0.9"
byteBuddyVersion = "1.12.6"
byteBuddyVersion = "1.12.7"
espressoVersion = "3.4.0"
workRuntime = "2.7.1"
fidoVersion = "4.1.0"
@@ -87,7 +87,7 @@ repositories {
// semantic versioning for version code
def versionMajor = 3
def versionMinor = 19
def versionMinor = 20
def versionPatch = 0
def versionBuild = 0 // 0-50=Alpha / 51-98=RC / 90-99=stable
@@ -173,8 +173,8 @@ android {
versionDev {
applicationId "com.nextcloud.android.beta"
dimension "default"
versionCode 20220117
versionName "20220117"
versionCode 20220126
versionName "20220126"
}
qa {
@@ -274,7 +274,7 @@ dependencies {
implementation 'com.google.code.gson:gson:2.8.9'
implementation 'com.afollestad:sectioned-recyclerview:0.5.0'
implementation 'com.github.chrisbanes:PhotoView:2.3.0'
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.23'
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.24'
implementation 'com.github.tobiaskaminsky:qrcodescanner:0.1.2.4' // 'com.github.blikoon:QRCodeScanner:0.1.2'
implementation 'com.google.android:flexbox:2.0.1'
implementation 'org.parceler:parceler-api:1.1.13'
Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.6 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 KiB

After

Width:  |  Height:  |  Size: 70 KiB

@@ -21,7 +21,6 @@
*/
package com.nextcloud.client
import android.view.View
import androidx.test.espresso.Espresso
import androidx.test.espresso.contrib.DrawerActions
import androidx.test.espresso.intent.rule.IntentsTestRule
@@ -51,9 +50,9 @@ class ActivitiesActivityIT : AbstractIT() {
shortSleep()
Espresso.onView(withId(R.id.drawer_layout)).perform(DrawerActions.open())
sut.runOnUiThread {
sut.binding.emptyList.emptyListView.visibility = View.VISIBLE
sut.binding.list.visibility = View.INVISIBLE
sut.dismissSnackbar()
}
shortSleep()
waitForIdleSync()
screenshot(sut)
}
@@ -62,6 +61,12 @@ class ActivitiesActivityIT : AbstractIT() {
@ScreenshotTest
fun loading() {
val sut: ActivitiesActivity = activityRule.launchActivity(null)
sut.runOnUiThread {
sut.dismissSnackbar()
}
shortSleep()
waitForIdleSync()
Screenshot.snapActivity(sut).record()
}
@@ -74,9 +79,11 @@ class ActivitiesActivityIT : AbstractIT() {
sut.runOnUiThread {
sut.showActivities(mutableListOf(), nextcloudClient, -1)
sut.setProgressIndicatorState(false)
sut.dismissSnackbar()
}
shortSleep()
waitForIdleSync()
screenshot(sut)
}
@@ -164,9 +171,11 @@ class ActivitiesActivityIT : AbstractIT() {
sut.runOnUiThread {
sut.showActivities(activities as List<Any>?, nextcloudClient, -1)
sut.setProgressIndicatorState(false)
sut.dismissSnackbar()
}
shortSleep()
waitForIdleSync()
screenshot(sut)
}
@@ -179,9 +188,11 @@ class ActivitiesActivityIT : AbstractIT() {
sut.runOnUiThread {
sut.showEmptyContent("Error", "Error! Please try again later!")
sut.setProgressIndicatorState(false)
sut.dismissSnackbar()
}
shortSleep()
waitForIdleSync()
screenshot(sut)
}
@@ -33,5 +33,7 @@ public class FileDataStorageManagerContentProviderClientIT extends FileDataStora
.getContentResolver()
.acquireContentProviderClient(ProviderMeta.ProviderTableMeta.CONTENT_URI)
);
super.before();
}
}
@@ -1,32 +0,0 @@
/*
*
* Nextcloud Android client application
*
* @author Tobias Kaminsky
* Copyright (C) 2020 Tobias Kaminsky
* Copyright (C) 2020 Nextcloud GmbH
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.owncloud.android.datamodel;
public class FileDataStorageManagerContentResolverIT extends FileDataStorageManagerIT {
@Override
public void before() {
sut = new FileDataStorageManager(user, targetContext.getContentResolver());
super.before();
}
}
@@ -0,0 +1,71 @@
/*
*
* Nextcloud Android client application
*
* @author Tobias Kaminsky
* Copyright (C) 2020 Tobias Kaminsky
* Copyright (C) 2020 Nextcloud GmbH
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.owncloud.android.datamodel
import org.junit.Assert
import org.junit.Test
import java.util.ArrayList
class FileDataStorageManagerContentResolverIT : FileDataStorageManagerIT() {
companion object {
private const val MANY_FILES_AMOUNT = 5000
}
override fun before() {
sut = FileDataStorageManager(user, targetContext.contentResolver)
super.before()
}
/**
* only on FileDataStorageManager
*/
@Test
fun testFolderWithManyFiles() {
// create folder
val folderA = OCFile("/folderA/", "00001") // remote Id must never be null
folderA.setFolder().parentId = sut.getFileByDecryptedRemotePath("/")!!.fileId
sut.saveFile(folderA)
Assert.assertTrue(sut.fileExists("/folderA/"))
Assert.assertEquals(0, sut.getFolderContent(folderA, false).size)
val folderAId = sut.getFileByDecryptedRemotePath("/folderA/")!!.fileId
// create files
val newFiles = (1..MANY_FILES_AMOUNT).map {
val file = OCFile("/folderA/file$it", it.toString())
file.parentId = folderAId
sut.saveFile(file)
val storedFile = sut.getFileByDecryptedRemotePath("/folderA/file$it")
Assert.assertNotNull(storedFile)
storedFile
}
// save files in folder
sut.saveFolder(
folderA,
newFiles,
ArrayList()
)
// check file count is correct
Assert.assertEquals(MANY_FILES_AMOUNT, sut.getFolderContent(folderA, false).size)
}
}
@@ -32,6 +32,7 @@ import com.owncloud.android.lib.resources.files.SearchRemoteOperation;
import com.owncloud.android.lib.resources.files.UploadFileRemoteOperation;
import com.owncloud.android.lib.resources.files.model.RemoteFile;
import com.owncloud.android.lib.resources.status.CapabilityBooleanType;
import com.owncloud.android.lib.resources.status.GetCapabilitiesRemoteOperation;
import com.owncloud.android.lib.resources.status.OCCapability;
import com.owncloud.android.operations.RefreshFolderOperation;
import com.owncloud.android.utils.FileStorageUtils;
@@ -57,6 +58,7 @@ import static org.junit.Assert.assertTrue;
abstract public class FileDataStorageManagerIT extends AbstractOnServerIT {
protected FileDataStorageManager sut;
private OCCapability capability;
@Before
public void before() {
@@ -65,6 +67,10 @@ abstract public class FileDataStorageManagerIT extends AbstractOnServerIT {
sut.deleteVirtuals(VirtualFolderType.GALLERY);
assertEquals(0, sut.getAllFiles().size());
capability = (OCCapability) new GetCapabilitiesRemoteOperation(null)
.execute(client)
.getSingleData();
}
@After
@@ -168,7 +174,8 @@ abstract public class FileDataStorageManagerIT extends AbstractOnServerIT {
// search
SearchRemoteOperation searchRemoteOperation = new SearchRemoteOperation("image/%",
PHOTO_SEARCH,
false);
false,
capability);
RemoteOperationResult<List<RemoteFile>> searchResult = searchRemoteOperation.execute(client);
TestCase.assertTrue(searchResult.isSuccess());
@@ -253,7 +260,8 @@ abstract public class FileDataStorageManagerIT extends AbstractOnServerIT {
// search
SearchRemoteOperation searchRemoteOperation = new SearchRemoteOperation("",
GALLERY_SEARCH,
false);
false,
capability);
RemoteOperationResult<List<RemoteFile>> searchResult = searchRemoteOperation.execute(client);
TestCase.assertTrue(searchResult.isSuccess());
@@ -176,7 +176,8 @@ class DocumentsStorageProviderIT : AbstractOnServerIT() {
assertExistsOnServer(client, ocFile1.remotePath, false)
}
@Test
@Suppress("MagicNumber")
@Test(timeout = 5 * 60 * 1000)
fun testServerChangedFileContent() {
// create random file
val file1 = rootDir.createFile("text/plain", RandomString.make())!!
@@ -91,6 +91,7 @@ class SessionMixin constructor(
val newAccount = accountManager.currentAccount
if (newAccount == null) {
// no account available: force account creation
currentAccount = null
startAccountCreation()
} else {
currentAccount = newAccount
@@ -632,6 +632,9 @@ public class FileDownloader extends Service
if (!downloadResult.isCancelled()) {
if (downloadResult.isSuccess()) {
if (conflictUploadId > 0) {
uploadsStorageManager.removeUpload(conflictUploadId);
}
// Dont show notification except an error has occured.
return;
}
@@ -667,10 +670,6 @@ public class FileDownloader extends Service
// Remove success notification
if (downloadResult.isSuccess()) {
if (conflictUploadId > 0) {
uploadsStorageManager.removeUpload(conflictUploadId);
}
// Sleep 2 seconds, so show the notification before remove it
NotificationUtils.cancelWithDelay(mNotificationManager,
R.string.downloader_download_succeeded_ticker, 2000);
@@ -58,8 +58,10 @@ import com.owncloud.android.utils.MimeType;
import java.io.File;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
import javax.inject.Inject;
@@ -100,6 +102,30 @@ public class FileContentProvider extends ContentProvider {
public static final int ARBITRARY_DATA_TABLE_INTRODUCTION_VERSION = 20;
public static final int MINIMUM_PATH_SEGMENTS_SIZE = 1;
private static final String[] PROJECTION_CONTENT_TYPE = new String[]{
ProviderTableMeta._ID, ProviderTableMeta.FILE_CONTENT_TYPE
};
private static final String[] PROJECTION_REMOTE_ID = new String[]{
ProviderTableMeta._ID, ProviderTableMeta.FILE_REMOTE_ID
};
private static final String[] PROJECTION_FILE_AND_STORAGE_PATH = new String[]{
ProviderTableMeta._ID, ProviderTableMeta.FILE_STORAGE_PATH, ProviderTableMeta.FILE_PATH
};
private static final String[] PROJECTION_FILE_PATH_AND_OWNER = new String[]{
ProviderTableMeta._ID, ProviderTableMeta.FILE_PATH, ProviderTableMeta.FILE_ACCOUNT_OWNER
};
private static final Map<String, String> FILE_PROJECTION_MAP;
static {
HashMap<String,String> tempMap = new HashMap<>();
for (String projection : ProviderTableMeta.FILE_ALL_COLUMNS) {
tempMap.put(projection, projection);
}
FILE_PROJECTION_MAP = Collections.unmodifiableMap(tempMap);
}
@Inject protected Clock clock;
private DataBaseHelper mDbHelper;
private Context mContext;
@@ -181,7 +207,8 @@ public class FileContentProvider extends ContentProvider {
private int deleteDirectory(SQLiteDatabase db, Uri uri, String where, String... whereArgs) {
int count = 0;
Cursor children = query(uri, null, null, null, null);
Cursor children = query(uri, PROJECTION_CONTENT_TYPE, null, null, null);
if (children != null) {
if (children.moveToFirst()) {
long childId;
@@ -213,7 +240,8 @@ public class FileContentProvider extends ContentProvider {
private int deleteSingleFile(SQLiteDatabase db, Uri uri, String where, String... whereArgs) {
int count = 0;
Cursor c = query(db, uri, null, where, whereArgs, null);
Cursor c = query(db, uri, PROJECTION_REMOTE_ID, where, whereArgs, null);
String remoteId = "";
try {
if (c != null && c.moveToFirst()) {
@@ -289,17 +317,13 @@ public class FileContentProvider extends ContentProvider {
switch (mUriMatcher.match(uri)) {
case ROOT_DIRECTORY:
case SINGLE_FILE:
String[] projection = new String[]{
ProviderTableMeta._ID, ProviderTableMeta.FILE_PATH,
ProviderTableMeta.FILE_ACCOUNT_OWNER
};
String where = ProviderTableMeta.FILE_PATH + "=? AND " + ProviderTableMeta.FILE_ACCOUNT_OWNER + "=?";
String remotePath = values.getAsString(ProviderTableMeta.FILE_PATH);
String accountName = values.getAsString(ProviderTableMeta.FILE_ACCOUNT_OWNER);
String[] whereArgs = {remotePath, accountName};
Cursor doubleCheck = query(db, uri, projection, where, whereArgs, null);
Cursor doubleCheck = query(db, uri, PROJECTION_FILE_PATH_AND_OWNER, where, whereArgs, null);
// ugly patch; serious refactoring is needed to reduce work in
// FileDataStorageManager and bring it to FileContentProvider
if (!doubleCheck.moveToFirst()) {
@@ -608,13 +632,7 @@ public class FileContentProvider extends ContentProvider {
// only file list is accessible via content provider, so only this has to be protected with projectionMap
if ((uriMatch == ROOT_DIRECTORY || uriMatch == SINGLE_FILE ||
uriMatch == DIRECTORY) && projectionArray != null) {
HashMap<String, String> projectionMap = new HashMap<>();
for (String projection : ProviderTableMeta.FILE_ALL_COLUMNS) {
projectionMap.put(projection, projection);
}
sqlQuery.setProjectionMap(projectionMap);
sqlQuery.setProjectionMap(FILE_PROJECTION_MAP);
}
// if both are null, let them pass to query
@@ -989,7 +1007,7 @@ public class FileContentProvider extends ContentProvider {
ProviderTableMeta.FILE_STORAGE_PATH + " IS NOT NULL";
Cursor c = db.query(ProviderTableMeta.FILE_TABLE_NAME,
null,
PROJECTION_FILE_AND_STORAGE_PATH,
whereClause,
new String[]{newAccountName},
null, null, null);
@@ -23,6 +23,7 @@ import android.os.Bundle;
import android.view.MenuItem;
import android.view.View;
import com.google.android.material.snackbar.Snackbar;
import com.nextcloud.client.network.ClientFactory;
import com.nextcloud.common.NextcloudClient;
import com.owncloud.android.R;
@@ -51,8 +52,8 @@ import androidx.annotation.VisibleForTesting;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import static com.owncloud.android.ui.activity.FileActivity.EXTRA_USER;
import static com.owncloud.android.ui.activity.FileActivity.EXTRA_FILE;
import static com.owncloud.android.ui.activity.FileActivity.EXTRA_USER;
/**
* This Activity presents activities feed.
@@ -65,6 +66,7 @@ public class ActivitiesActivity extends DrawerActivity implements ActivityListIn
private int lastGiven;
private boolean isLoadingActivities;
private ActivitiesContract.ActionListener actionListener;
private Snackbar snackbar;
@Inject ActivitiesRepository activitiesRepository;
@Inject FilesRepository filesRepository;
@@ -198,7 +200,7 @@ public class ActivitiesActivity extends DrawerActivity implements ActivityListIn
@Override
public void showActivitiesLoadError(String error) {
DisplayUtils.showSnackMessage(this, error);
snackbar = DisplayUtils.showSnackMessage(this, error);
}
@Override
@@ -217,12 +219,12 @@ public class ActivitiesActivity extends DrawerActivity implements ActivityListIn
@Override
public void showActivityDetailUIIsNull() {
DisplayUtils.showSnackMessage(this, R.string.file_not_found);
snackbar = DisplayUtils.showSnackMessage(this, R.string.file_not_found);
}
@Override
public void showActivityDetailError(String error) {
DisplayUtils.showSnackMessage(this, error);
snackbar = DisplayUtils.showSnackMessage(this, error);
}
@Override
@@ -255,4 +257,12 @@ public class ActivitiesActivity extends DrawerActivity implements ActivityListIn
actionListener.onStop();
}
@VisibleForTesting
public void dismissSnackbar() {
if (snackbar != null && snackbar.isShown()) {
snackbar.dismiss();
snackbar = null;
}
}
}
@@ -62,13 +62,6 @@ public class CommunityActivity extends DrawerActivity {
protected void setupContent() {
binding.communityReleaseCandidateText.setMovementMethod(LinkMovementMethod.getInstance());
TextView contributeIrcView = binding.communityContributeIrcText;
contributeIrcView.setMovementMethod(LinkMovementMethod.getInstance());
contributeIrcView.setText(Html.fromHtml(getString(R.string.community_contribute_irc_text) + " " +
getString(R.string.community_contribute_irc_text_link,
ThemeColorUtils.primaryColorToHexString(this),
getString(R.string.irc_weblink))));
TextView contributeForumView = binding.communityContributeForumText;
contributeForumView.setMovementMethod(LinkMovementMethod.getInstance());
contributeForumView.setText(Html.fromHtml(getString(R.string.community_contribute_forum_text) + " " +
@@ -149,6 +149,8 @@ public class ConflictsResolveActivity extends FileActivity implements OnConflict
intent.putExtra(FileDownloader.EXTRA_FILE, file);
intent.putExtra(EXTRA_CONFLICT_UPLOAD_ID, conflictUploadId);
startService(intent);
} else {
uploadsStorageManager.removeUpload(upload);
}
break;
}
@@ -56,11 +56,10 @@ public class FetchRemoteFileTask extends AsyncTask<Void, Void, String> {
@Override
protected String doInBackground(Void... voids) {
SearchRemoteOperation searchRemoteOperation = new SearchRemoteOperation(fileId,
FILE_ID_SEARCH,
false);
false,
fileDisplayActivity.getCapabilities());
RemoteOperationResult remoteOperationResult = searchRemoteOperation.execute(user.toPlatformAccount(),
fileDisplayActivity);
@@ -153,7 +153,6 @@ public class ExtendedListFragment extends Fragment implements
FAVORITE_SEARCH,
GALLERY_SEARCH,
RECENTLY_MODIFIED_SEARCH,
RECENTLY_ADDED_SEARCH,
// not a real filter, but nevertheless
SHARED_FILTER
}
@@ -673,10 +672,6 @@ public class ExtendedListFragment extends Fragment implements
setMessageForEmptyList(R.string.file_list_empty_headline_server_search,
R.string.file_list_empty_recently_modified,
R.drawable.ic_list_empty_recent);
} else if (searchType == SearchType.RECENTLY_ADDED_SEARCH) {
setMessageForEmptyList(R.string.file_list_empty_headline_server_search,
R.string.file_list_empty_recently_added,
R.drawable.ic_list_empty_recent);
} else if (searchType == SearchType.REGULAR_FILTER) {
setMessageForEmptyList(R.string.file_list_empty_headline_search,
R.string.file_list_empty_search,
@@ -30,6 +30,7 @@ import android.view.ViewGroup;
import com.owncloud.android.datamodel.VirtualFolderType;
import com.owncloud.android.lib.common.utils.Log_OC;
import com.owncloud.android.lib.resources.files.SearchRemoteOperation;
import com.owncloud.android.lib.resources.status.OCCapability;
import com.owncloud.android.ui.asynctasks.GallerySearchTask;
import com.owncloud.android.ui.events.ChangeMenuEvent;
import com.owncloud.android.ui.events.SearchEvent;
@@ -67,9 +68,13 @@ public class GalleryFragment extends OCFileListFragment {
searchEvent = new SearchEvent("", SearchRemoteOperation.SearchType.GALLERY_SEARCH);
OCCapability ocCapability = mContainerActivity.getStorageManager()
.getCapability(accountManager.getUser().getAccountName());
searchRemoteOperation = new SearchRemoteOperation(searchEvent.getSearchQuery(),
searchEvent.getSearchType(),
false);
false,
ocCapability);
}
@Override
@@ -54,6 +54,7 @@ import com.nextcloud.client.device.DeviceInfo;
import com.nextcloud.client.di.Injectable;
import com.nextcloud.client.network.ClientFactory;
import com.nextcloud.client.preferences.AppPreferences;
import com.nextcloud.client.utils.Throttler;
import com.owncloud.android.MainApp;
import com.owncloud.android.R;
import com.owncloud.android.datamodel.ArbitraryDataProvider;
@@ -101,7 +102,6 @@ import com.owncloud.android.utils.EncryptionUtils;
import com.owncloud.android.utils.FileSortOrder;
import com.owncloud.android.utils.FileStorageUtils;
import com.owncloud.android.utils.MimeTypeUtil;
import com.nextcloud.client.utils.Throttler;
import com.owncloud.android.utils.theme.ThemeColorUtils;
import com.owncloud.android.utils.theme.ThemeFabUtils;
import com.owncloud.android.utils.theme.ThemeToolbarUtils;
@@ -240,6 +240,9 @@ public class OCFileListFragment extends ExtendedListFragment implements
if (intent.getParcelableExtra(OCFileListFragment.SEARCH_EVENT) != null) {
searchEvent = Parcels.unwrap(intent.getParcelableExtra(OCFileListFragment.SEARCH_EVENT));
}
if (isSearchEventSet(searchEvent)) {
handleSearchEvent(searchEvent);
}
@@ -1376,9 +1379,6 @@ public class OCFileListFragment extends ExtendedListFragment implements
case GALLERY_SEARCH:
setTitle(R.string.drawer_item_gallery);
break;
case RECENTLY_ADDED_SEARCH:
setTitle(R.string.drawer_item_recently_added);
break;
case RECENTLY_MODIFIED_SEARCH:
setTitle(R.string.drawer_item_recently_modified);
break;
@@ -1397,9 +1397,6 @@ public class OCFileListFragment extends ExtendedListFragment implements
if (event != null) {
switch (event.getSearchType()) {
case FAVORITE_SEARCH:
menuItemAddRemoveValue = MenuItemAddRemove.REMOVE_SORT;
break;
case RECENTLY_MODIFIED_SEARCH:
menuItemAddRemoveValue = MenuItemAddRemove.REMOVE_SORT;
break;
@@ -1479,6 +1476,15 @@ public class OCFileListFragment extends ExtendedListFragment implements
}
}
@Override
public void onViewStateRestored(@Nullable Bundle savedInstanceState) {
super.onViewStateRestored(savedInstanceState);
if (savedInstanceState != null) {
searchEvent = Parcels.unwrap(savedInstanceState.getParcelable(SEARCH_EVENT));
}
}
@Subscribe(threadMode = ThreadMode.BACKGROUND)
public void onMessageEvent(final SearchEvent event) {
handleSearchEvent(event);
@@ -1515,8 +1521,13 @@ public class OCFileListFragment extends ExtendedListFragment implements
searchOnlyFolders = true;
}
remoteOperation = new SearchRemoteOperation(event.getSearchQuery(), event.getSearchType(),
searchOnlyFolders);
OCCapability ocCapability = mContainerActivity.getStorageManager()
.getCapability(currentUser.getAccountName());
remoteOperation = new SearchRemoteOperation(event.getSearchQuery(),
event.getSearchType(),
searchOnlyFolders,
ocCapability);
} else {
remoteOperation = new GetSharesRemoteOperation();
}
@@ -1712,7 +1723,8 @@ public class OCFileListFragment extends ExtendedListFragment implements
(!TextUtils.isEmpty(event.getSearchQuery()) ||
event.searchType == SearchRemoteOperation.SearchType.SHARED_SEARCH ||
event.searchType == SearchRemoteOperation.SearchType.SHARED_FILTER ||
event.searchType == SearchRemoteOperation.SearchType.FAVORITE_SEARCH);
event.searchType == SearchRemoteOperation.SearchType.FAVORITE_SEARCH ||
event.searchType == SearchRemoteOperation.SearchType.RECENTLY_MODIFIED_SEARCH);
}
private void syncAndCheckFiles(Collection<OCFile> files) {
@@ -267,11 +267,11 @@ public class BackupFragment extends FileFragment implements DatePickerDialog.OnD
@Override
protected void onPostExecute(Boolean result) {
if (result) {
if (result && binding != null) {
OCFile backupFolder = storageManager.getFileByPath(backupFolderPath);
List<OCFile> backupFiles = storageManager
.getFolderContent(backupFolder, false);
.getFolderContent(backupFolder, false);
Collections.sort(backupFiles, new AlphanumComparator<>());
@@ -646,9 +646,10 @@ public final class DisplayUtils {
*
* @param activity The {@link Activity} to which's content view the {@link Snackbar} is bound.
* @param messageResource The resource id of the string resource to use. Can be formatted text.
* @return The created {@link Snackbar}
*/
public static void showSnackMessage(Activity activity, @StringRes int messageResource) {
showSnackMessage(activity.findViewById(android.R.id.content), messageResource);
public static Snackbar showSnackMessage(Activity activity, @StringRes int messageResource) {
return showSnackMessage(activity.findViewById(android.R.id.content), messageResource);
}
/**
@@ -656,9 +657,12 @@ public final class DisplayUtils {
*
* @param activity The {@link Activity} to which's content view the {@link Snackbar} is bound.
* @param message Message to show.
* @return The created {@link Snackbar}
*/
public static void showSnackMessage(Activity activity, String message) {
Snackbar.make(activity.findViewById(android.R.id.content), message, Snackbar.LENGTH_LONG).show();
public static Snackbar showSnackMessage(Activity activity, String message) {
final Snackbar snackbar = Snackbar.make(activity.findViewById(android.R.id.content), message, Snackbar.LENGTH_LONG);
snackbar.show();
return snackbar;
}
/**
@@ -666,9 +670,12 @@ public final class DisplayUtils {
*
* @param view The view the {@link Snackbar} is bound to.
* @param messageResource The resource id of the string resource to use. Can be formatted text.
* @return The created {@link Snackbar}
*/
public static void showSnackMessage(View view, @StringRes int messageResource) {
Snackbar.make(view, messageResource, Snackbar.LENGTH_LONG).show();
public static Snackbar showSnackMessage(View view, @StringRes int messageResource) {
final Snackbar snackbar = Snackbar.make(view, messageResource, Snackbar.LENGTH_LONG);
snackbar.show();
return snackbar;
}
/**
@@ -676,9 +683,12 @@ public final class DisplayUtils {
*
* @param view The view the {@link Snackbar} is bound to.
* @param message The message.
* @return The created {@link Snackbar}
*/
public static void showSnackMessage(View view, String message) {
Snackbar.make(view, message, Snackbar.LENGTH_LONG).show();
public static Snackbar showSnackMessage(View view, String message) {
final Snackbar snackbar = Snackbar.make(view, message, Snackbar.LENGTH_LONG);
snackbar.show();
return snackbar;
}
/**
@@ -686,6 +696,7 @@ public final class DisplayUtils {
*
* @param view The view the {@link Snackbar} is bound to.
* @param messageResource The resource id of the string resource to use. Can be formatted text.
* @return The created {@link Snackbar}
*/
public static Snackbar createSnackbar(View view, @StringRes int messageResource, int length) {
return Snackbar.make(view, messageResource, length);
@@ -697,9 +708,10 @@ public final class DisplayUtils {
* @param activity The {@link Activity} to which's content view the {@link Snackbar} is bound.
* @param messageResource The resource id of the string resource to use. Can be formatted text.
* @param formatArgs The format arguments that will be used for substitution.
* @return The created {@link Snackbar}
*/
public static void showSnackMessage(Activity activity, @StringRes int messageResource, Object... formatArgs) {
showSnackMessage(activity, activity.findViewById(android.R.id.content), messageResource, formatArgs);
public static Snackbar showSnackMessage(Activity activity, @StringRes int messageResource, Object... formatArgs) {
return showSnackMessage(activity, activity.findViewById(android.R.id.content), messageResource, formatArgs);
}
/**
@@ -709,13 +721,16 @@ public final class DisplayUtils {
* @param view The content view the {@link Snackbar} is bound to.
* @param messageResource The resource id of the string resource to use. Can be formatted text.
* @param formatArgs The format arguments that will be used for substitution.
* @return The created {@link Snackbar}
*/
public static void showSnackMessage(Context context, View view, @StringRes int messageResource, Object... formatArgs) {
Snackbar.make(
public static Snackbar showSnackMessage(Context context, View view, @StringRes int messageResource, Object... formatArgs) {
final Snackbar snackbar = Snackbar.make(
view,
String.format(context.getString(messageResource, formatArgs)),
Snackbar.LENGTH_LONG)
Snackbar.LENGTH_LONG);
snackbar
.show();
return snackbar;
}
// Solution inspired by https://stackoverflow.com/questions/34936590/why-isnt-my-vector-drawable-scaling-as-expected
@@ -43,20 +43,12 @@ public final class DrawerMenuUtil {
User user,
Resources resources) {
if (user.isAnonymous()) {
filterMenuItems(menu, R.id.nav_gallery, R.id.nav_favorites, R.id.nav_videos);
}
if (!resources.getBoolean(R.bool.recently_added_enabled)) {
menu.removeItem(R.id.nav_recently_added);
filterMenuItems(menu, R.id.nav_gallery, R.id.nav_favorites);
}
if (!resources.getBoolean(R.bool.recently_modified_enabled)) {
menu.removeItem(R.id.nav_recently_modified);
}
if (!resources.getBoolean(R.bool.videos_enabled)) {
menu.removeItem(R.id.nav_videos);
}
}
public static void filterTrashbinMenuItem(Menu menu, @Nullable OCCapability capability) {
@@ -30,6 +30,7 @@ import android.content.IntentFilter;
import com.nextcloud.client.account.UserAccountManager;
import com.nextcloud.client.device.PowerManagementService;
import com.nextcloud.client.network.ConnectivityService;
import com.nextcloud.common.DNSCache;
import com.owncloud.android.MainApp;
import com.owncloud.android.datamodel.UploadsStorageManager;
@@ -55,6 +56,7 @@ public final class ReceiversHelper {
BroadcastReceiver broadcastReceiver = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
DNSCache.clear();
if (connectivityService.getConnectivity().isConnected()) {
FilesSyncHelper.restartJobsIfNeeded(uploadsStorageManager,
accountManager,
-25
View File
@@ -1,25 +0,0 @@
<!--
Nextcloud Android client application
Copyright (C) 2020 Nextcloud.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
License as published by the Free Software Foundation; either
version 3 of the License, or any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU AFFERO GENERAL PUBLIC LICENSE for more details.
You should have received a copy of the GNU Affero General Public
License along with this program. If not, see <http://www.gnu.org/licenses/>.
Icon provided by Android Material Library in Apache License 2.0
-->
<vector android:height="24dp" android:tint="#757575"
android:viewportHeight="24.0" android:viewportWidth="24.0"
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#FF000000" android:pathData="M21,3L3,3c-1.11,0 -2,0.89 -2,2v12c0,1.1 0.89,2 2,2h5v2h8v-2h5c1.1,0 1.99,-0.9 1.99,-2L23,5c0,-1.11 -0.9,-2 -2,-2zM21,17L3,17L3,5h18v12zM16,11l-7,4L9,7z"/>
</vector>
-8
View File
@@ -86,14 +86,6 @@
android:text="@string/community_contribute_headline"
android:textAppearance="?android:attr/textAppearanceLarge" />
<TextView
android:id="@+id/community_contribute_irc_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/community_contribute_irc_text"
android:paddingBottom="@dimen/standard_quarter_padding"
android:textAppearance="?android:attr/textAppearanceMedium"/>
<TextView
android:id="@+id/community_contribute_forum_text"
android:layout_width="wrap_content"
+1 -13
View File
@@ -43,12 +43,6 @@
android:id="@+id/nav_gallery"
android:icon="@drawable/nav_photos"
android:title="@string/drawer_item_gallery" />
<item
android:id="@+id/nav_videos"
android:icon="@drawable/nav_videos"
android:orderInCategory="0"
android:title="@string/drawer_item_videos"
android:visible="false"/>
<item
android:id="@+id/nav_shared"
android:orderInCategory="0"
@@ -59,18 +53,12 @@
android:icon="@drawable/nav_on_device"
android:orderInCategory="0"
android:title="@string/drawer_item_on_device"/>
<item
android:id="@+id/nav_recently_added"
android:icon="@drawable/nav_recently"
android:orderInCategory="0"
android:title="@string/drawer_item_recently_added"
android:visible="false"/>
<item
android:id="@+id/nav_recently_modified"
android:icon="@drawable/nav_recently"
android:orderInCategory="0"
android:title="@string/drawer_item_recently_modified"
android:visible="false"/>
android:visible="true"/>
<item
android:orderInCategory="0"
android:id="@+id/nav_notifications"
+2 -1
View File
@@ -549,6 +549,7 @@
<string name="prefs_lock_using_device_credentials">Gailuaren egiaztagiriak</string>
<string name="prefs_lock_using_passcode">Pasahitza</string>
<string name="prefs_manage_accounts">Kudeatu kontuak</string>
<string name="prefs_recommend">Gomendatu lagun bati</string>
<string name="prefs_show_hidden_files">Erakutsi ezkutuko fitxategiak</string>
<string name="prefs_sourcecode">Eskuratu iturburu-kodea</string>
<string name="prefs_storage_path">Datu-biltegiratze karpeta</string>
@@ -823,7 +824,7 @@
<string name="uploads_view_group_failed_uploads">Huts egin du/berrabiarazteko zain</string>
<string name="uploads_view_group_finished_uploads">Igoa</string>
<string name="uploads_view_later_waiting_to_upload">Igotzeko itxoiten</string>
<string name="uploads_view_title">Igoerak</string>
<string name="uploads_view_title">Kargak</string>
<string name="uploads_view_upload_status_cancelled">Ezeztatuak</string>
<string name="uploads_view_upload_status_conflict">Gatazka</string>
<string name="uploads_view_upload_status_failed_connection_error">Konexio errorea</string>
+1
View File
@@ -463,6 +463,7 @@ Attention la suppression est irréversible.</string>
<string name="no_email_app_available">Aucune application disponible pour ouvrir l\'adresse email</string>
<string name="no_mutliple_accounts_allowed">Seulement un compte autorisé</string>
<string name="no_pdf_app_available">Aucune application n\'est disponible pour ouvrir les fichiers PDF</string>
<string name="no_send_app">Aucune application disponible pour envoyer les fichiers sélectionnés</string>
<string name="no_share_permission_selected">Veuillez sélectionner au moins une permission à partager.</string>
<string name="note_confirm">Envoyer</string>
<string name="note_could_not_sent">Impossible d\'envoyer la note</string>
+4
View File
@@ -150,8 +150,10 @@
<string name="conflict_already_existing_file">Már létező fájl</string>
<string name="conflict_dialog_error">Hiba az ütközési párbeszédablak létrehozásakor!</string>
<string name="conflict_file_headline">Ütköző fájl: %1$s</string>
<string name="conflict_local_file">Helyi fájl</string>
<string name="conflict_message_description">Amennyiben mindkét verziót kiválasztja, a helyi fájl nevéhez egy szám lesz hozzáfűzve.</string>
<string name="conflict_new_file">Új fájl</string>
<string name="conflict_server_file">Kiszolgálón lévő fájl</string>
<string name="contactlist_item_icon">Felhasználó ikon a névjegylistához</string>
<string name="contactlist_no_permission">Nincs jogosultság megadva, semmi sem lett importálva.</string>
<string name="contacts">Névjegyek</string>
@@ -459,6 +461,7 @@
<string name="no_email_app_available">Nem érhető el alkalmazás a levélcímek kezeléséhez</string>
<string name="no_mutliple_accounts_allowed">Csak egy fiók engedélyezett</string>
<string name="no_pdf_app_available">Nincs elérhető alkalmazás PDF kezeléséhez</string>
<string name="no_send_app">Nem érhető el alkalmazás a kiválasztott fájlok küldéséhez</string>
<string name="no_share_permission_selected">Válasszon legalább egy jogosultságot a megosztáshoz.</string>
<string name="note_confirm">Küldés</string>
<string name="note_could_not_sent">A jegyzet nem küldhető el</string>
@@ -547,6 +550,7 @@
<string name="prefs_lock_using_device_credentials">Eszközhitelesítő-adatok</string>
<string name="prefs_lock_using_passcode">Számkód</string>
<string name="prefs_manage_accounts">Fiókok kezelése</string>
<string name="prefs_recommend">Ajánlás egy barátnak</string>
<string name="prefs_show_hidden_files">Rejtett fájlok megjelenítése</string>
<string name="prefs_sourcecode">Forráskód beszerzése</string>
<string name="prefs_storage_path">Adattároló mappa</string>
+2 -1
View File
@@ -509,7 +509,7 @@
<string name="player_toggle">omschakelen</string>
<string name="power_save_check_dialog_message">Uitschakelen stroombesparingscontrole kan resulteren in uploaden van bestanden met lage accustand!</string>
<string name="pref_behaviour_entries_delete_file">verwijderd worden</string>
<string name="pref_behaviour_entries_keep_file">bewaard worden in originele map</string>
<string name="pref_behaviour_entries_keep_file">bewaard in originele map</string>
<string name="pref_behaviour_entries_move">verplaatst worden naar app-map</string>
<string name="pref_instant_name_collision_policy_dialogTitle">Wat als het bestand al bestaat?</string>
<string name="pref_instant_name_collision_policy_entries_always_ask">Vraag me elke keer</string>
@@ -549,6 +549,7 @@
<string name="prefs_lock_using_device_credentials">Toestelgegevens</string>
<string name="prefs_lock_using_passcode">Toegangscode</string>
<string name="prefs_manage_accounts">Accounts beheren</string>
<string name="prefs_recommend">Aanbevelen bij een vriend</string>
<string name="prefs_show_hidden_files">Verborgen bestanden weergeven</string>
<string name="prefs_sourcecode">Krijg broncode</string>
<string name="prefs_storage_path">Gegevensopslagmap</string>
+1 -1
View File
@@ -218,7 +218,7 @@
<string name="drawer_close">Zamknij pasek boczny</string>
<string name="drawer_community">Społeczność</string>
<string name="drawer_header_background">Tło nagłówka menu rozwijanego</string>
<string name="drawer_item_activities">Aktywności</string>
<string name="drawer_item_activities">Aktywność</string>
<string name="drawer_item_all_files">Wszystkie pliki</string>
<string name="drawer_item_favorites">Ulubione</string>
<string name="drawer_item_gallery">Media</string>
+1
View File
@@ -461,6 +461,7 @@
<string name="no_email_app_available">Nenhum aplicativo disponível para lidar com endereço de e-mail </string>
<string name="no_mutliple_accounts_allowed">Somente uma conta é permitida</string>
<string name="no_pdf_app_available">Nenhum aplicativo disponível para lidar com PDF</string>
<string name="no_send_app">Nenhum aplicativo disponível para enviar os arquivos selecionados</string>
<string name="no_share_permission_selected">Selecione ao menos uma permissão para compartilhar.</string>
<string name="note_confirm">Enviar</string>
<string name="note_could_not_sent">Não foi possível enviar a anotação</string>
+1
View File
@@ -461,6 +461,7 @@
<string name="no_email_app_available">E-posta adreslerini işleyecek bir uygulama bulunamadı</string>
<string name="no_mutliple_accounts_allowed">Yalnız bir hesap kullanılabilir</string>
<string name="no_pdf_app_available">PDF dosyalarını işleyecek bir uygulama bulunamadı</string>
<string name="no_send_app">Seçilmiş dosyaların gönderilebileceği bir uygulama bulunamadı</string>
<string name="no_share_permission_selected">Lütfen paylaşmak için en az bir izin seçin.</string>
<string name="note_confirm">Gönder</string>
<string name="note_could_not_sent">Not gönderilemedi</string>
-3
View File
@@ -53,10 +53,8 @@
<bool name="multiaccount_support">true</bool>
<!-- Drawer options -->
<bool name="recently_added_enabled">false</bool>
<bool name="recently_modified_enabled">false</bool>
<bool name="shared_enabled">true</bool>
<bool name="videos_enabled">false</bool>
<bool name="show_drawer_logout">false</bool>
<!-- Help, imprint and feedback, and other things -->
@@ -96,7 +94,6 @@
<string name="beta_apk_link" translatable="false">https://download.nextcloud.com/android/dev/latest.apk</string>
<string name="play_store_register_beta" translatable="false">https://play.google.com/apps/testing/com.nextcloud.client</string>
<string name="fdroid_link" translatable="false">https://f-droid.org/repository/browse/?fdid=com.nextcloud.client</string>
<string name="irc_weblink" translatable="false">http://webchat.freenode.net?channels=nextcloud-mobile</string>
<string name="help_link" translatable="false">https://help.nextcloud.com/c/clients/android</string>
<string name="translation_link" translatable="false">https://www.transifex.com/nextcloud/nextcloud/android/</string>
<string name="contributing_link" translatable="false">https://github.com/nextcloud/android/blob/master/CONTRIBUTING.md</string>
-5
View File
@@ -22,10 +22,8 @@
<string name="drawer_item_home">Home</string>
<string name="drawer_item_favorites">Favorites</string>
<string name="drawer_item_on_device">On device</string>
<string name="drawer_item_recently_added">Recently added</string>
<string name="drawer_item_recently_modified">Recently modified</string>
<string name="drawer_item_shared">Shared</string>
<string name="drawer_item_videos">Videos</string>
<string name="drawer_item_uploads_list">Uploads</string>
<string name="drawer_item_activities">Activities</string>
<string name="drawer_item_notifications">Notifications</string>
@@ -101,7 +99,6 @@
<string name="file_list_empty_shared">Files and folders you share will show up here.</string>
<string name="file_list_empty_search">Maybe it is in a different folder?</string>
<string name="file_list_empty_recently_modified">Found no files modified within the last 7 days</string>
<string name="file_list_empty_recently_added">Found no recently added files</string>
<string name="trashbin_empty_headline">No deleted files</string>
<string name="trashbin_empty_message">You will be able to recover deleted files from here.</string>
<string name="upload_list_empty_headline">No uploads available</string>
@@ -515,8 +512,6 @@
<string name="community_release_candidate_headline">Release candidate</string>
<string name="community_release_candidate_text">The release candidate (RC) is a snapshot of the upcoming release and is expected to be stable. Testing your individual setup could help ensure this. Sign up for testing on the Play store or manually look in the \"Version\" section of F-Droid.</string>
<string name="community_contribute_headline">Actively Contribute</string>
<string name="community_contribute_irc_text">Join the chat on IRC:</string>
<string name="community_contribute_irc_text_link" translatable="false"> &lt;font color=\"%1$s\">&lt;a href=\"%2$s\">#nextcloud-mobile&lt;/a>&lt;/font></string>
<string name="community_contribute_forum_text">Help others on the</string>
<string name="community_contribute_forum_forum">forum</string>
<string name="community_contribute_forum_text_link" translatable="false">&lt;font color=\"%1$s\">&lt;a href=\"%2$s\">%3$s&lt;/a>&lt;/font></string>
@@ -0,0 +1,7 @@
ConflictsResolveActivity: remove upload is KEEP_SERVER and shouldDeleteLocal
removed a check in KEEP_SERVER switch clause. 1) The check prevents solving file conflicts (keep server) correctly. 2) The check involves FileUploader.LOCAL_BEHAVIOUR_DELETE, intended use is for media file uploads.
:Conflict files are removed from the upload storage manager after downloaded successfully.
Fix NPE in BackupFragment when fragment exits while refresh is happening
Screenshot tests: Improve Activities activity tests
Update translations
Update 3rd-party dependencies
@@ -0,0 +1,6 @@
remove not used videos drawer entry (#9708)
SessionMixin: set currentAccount to null when no accounts are available
FileContentProvider: make projection map unmodifiable
FileContentProvider: fix formatting
FileContentProvider: make projection arrays and map static
FileContentProvider: use projections for queries
@@ -0,0 +1,3 @@
Remove IRC info from app and docs
Update translations
Update Nextcloud Android library
@@ -0,0 +1,5 @@
Restore library version
Use capability in SearchRemoteOperation
Clear DNS cache on network changes
Update translations
Update Nextcloud Android library
@@ -0,0 +1 @@
Bump version to 3.20.0 on master
@@ -0,0 +1,3 @@
Update translations
Update Nextcloud Android library
@@ -0,0 +1,3 @@
Bump versions for fastlane and plugins
Update Nextcloud Android library
Update 3rd-party dependencies
@@ -0,0 +1,7 @@
Fix default visibility of recently modified
Remove recently added search
OCFileListFragment: restore search event on view restored
OCFileListFragment: add recently modified to the list of valid search events
Update translations
Update Nextcloud Android library
Update 3rd-party dependencies