-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
External SD support #92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
b1963ae
Prepare preferences and project to use user defined storage path
tobiasKaminsky 3fc8d99
rebase
AndyScherzinger b38b327
Add more migration stuff. cleanup step is still missing
przybylski 67bc271
Add cleanup and rollback step when migrating. Correctly set progress …
przybylski ebbab22
Code cleanups
przybylski 6722f71
Stop and start logging on migration
przybylski 8ad388f
Soften requirement on cleanup step failures
przybylski 0ea54fa
Fix after rebase
przybylski cec707b
For more reliability delete old files recursively in migration cleanup
przybylski 2af111b
Add DataStorageUtils to detect connected SD cards
przybylski 9dc51a4
Simplify storage selection process
przybylski 47f522d
Small code cleanups
przybylski 8b587ce
Tabs to spaces
przybylski 70c690c
Use progress dialog instead of alert dialog, for better UX
przybylski 4265c60
Change the way of fetching mounted resources, use system tools and pa…
przybylski a9f55d5
Handle case of migration of empty src directory
przybylski 5cf019d
Because of multiple underlying implementation of storage mount points…
przybylski afbe508
use lollipop external storage system
tobiasKaminsky e47ebda
rebase fixes
przybylski d1ebcdd
fixed strings (oC->Nc and ... --> …)
AndyScherzinger d7d2845
lib version 1.0.2, organizes imports in FileStorageUtils
AndyScherzinger 6e73da2
CR, GPLv3
AndyScherzinger 612199a
further CR fixes, fixed comment in layout/migration_layout.xml
AndyScherzinger 20a0a74
extract/pre-compile the pattern
AndyScherzinger b09126c
fixed imports after rebase
AndyScherzinger File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!-- | ||
| Nextcloud Android client application | ||
|
|
||
| Copyright (C) 2016 Bartosz Przybylski | ||
| Copyright (C) 2016 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/>. | ||
| --> | ||
|
|
||
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="match_parent" | ||
| android:gravity="center_vertical" | ||
| android:orientation="vertical"> | ||
|
|
||
| <ProgressBar | ||
| android:id="@+id/migrationProgress" | ||
| style="?android:attr/progressBarStyleHorizontal" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:layout_gravity="center_horizontal" | ||
| android:paddingLeft="30dp" | ||
| android:paddingRight="30dp" | ||
| android:progress="50"/> | ||
|
|
||
| <TextView | ||
| android:id="@+id/migrationText" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:layout_gravity="center_horizontal" | ||
| android:text="" | ||
| android:textAppearance="?android:attr/textAppearanceMedium"/> | ||
|
|
||
| <Button | ||
| android:id="@+id/finishButton" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:layout_gravity="center_horizontal" | ||
| android:text="@string/drawer_close"/> | ||
| </LinearLayout> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need further API checks for this for Android 23 support or is this already covered by the given check?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems covered