1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-27 14:51:15 +00:00
Commit graph

2481 commits

Author SHA1 Message Date
fa49c796ae Fixed crash when opening SettingsActivity 2017-10-24 00:01:24 +09:00
Jessie Chatham Spencer
d6ee33e48e Improvements for "save to Syncthing" (#939)
* Addressing #899 and #898.
Added Subdirectory browsing
The previously selected folder is remembered.
The subdirectory is remembered for each syncthing folder.
The saved subdirectory in the sharedpreferences is deleted when a folder is deleted.
The root directory of the folderpicker activity is set to the synced folder, so the user can only choose a subfolder within the folder that is being synced.
The folderpicker activity was modified inorder to allow for a custom root directroy to be set.

* Addressing change requests.
Spelling and formatting.

* Addressing change requests.
 - The saved folder subdirectory is now deleted in RestApi.removeFolder(),
   this ensure that the data will be deleted no matter where removeFolder()
   is called from.

 - FolderPickerActivity.createIntentWithRootDir() removed and its functionality moved
   to FolderPickerActivity.createIntent() inorder to simplify the code.

 - getSharedPreference has been replaced with PreferenceManager.getDefaultSharedPreferences.

 - When passing the directory to CopyFileTask getSavedSubdirectory() is now used, instead
   of getting the text from the textview. This is cleaner and ensures that the same method us
   used to get the saved subdirectory everywhere in the ShareActivity.

 - File is used to combine the folder path and subdirectory path instead of strings.
   This ensures that the paths are properly combined. As a result of this CopyFilesTask
   has been modified so it accepts a File instead of a String.

* Addressing change requests
    - Removed the preceding slash from the sub directory and added a trailing slash.
    - TextView now diplays a message when no sub directory is selected.
    - A separate browse button has been added.

* Fixes UI for all screen sizes in the share activity and adds helper method for formatting file
paths.
If there is not space for the save and cancel buttons then the view becomes scrollable
so the buttons can be reached.
2017-10-23 23:28:26 +09:00
3bec05f718 Always run as foreground service with "run in background" (fixes #922) 2017-10-23 23:17:05 +09:00
07a9518437 Fix app control by broadcast intents on Android 8 (fixes #976) 2017-10-23 22:59:21 +09:00
d925cbfdde Fix dialog crashes in StateDialogActivity 2017-10-20 10:36:53 +09:00
da9db849eb Start receivers when required, instead of declaring them in manifest
This should solve some problems on Android 8
https://forum.syncthing.net/t/charging-only-run-condition-is-no-longer-working-as-expected/10772
2017-10-20 00:40:39 +09:00
fc79c3c004 Updated string 2017-10-19 14:18:33 +09:00
bba3b5f927 Bumped version to 0.9.17 2017-10-19 12:41:10 +09:00
79f6f8fafa Imported translations 2017-10-19 12:40:27 +09:00
f8a41ff4b7 Don't call startForegroundService if app is not running in background (fixes #972) 2017-10-19 12:35:17 +09:00
18c419b2ed Revert build script changes
This reverts commits 5749b98b92,
9559d0c2d9,
536c826fbb
2017-10-19 12:09:53 +09:00
5749b98b92 Update build instructions 2017-10-17 17:32:16 +09:00
9559d0c2d9 Divide project into submodules, compile with Clang 2017-10-17 12:59:13 +09:00
536c826fbb Merge branch 'cgo-build' 2017-10-17 09:14:17 +09:00
1660479b6e Build Syncthing with CGO and target android (fixes #873) 2017-10-17 09:13:06 +09:00
9840076f31 Update release scripts 2017-10-11 12:55:12 +09:00
432c666c0d Bumped version to 0.9.16 2017-10-11 12:33:26 +09:00
5edeae4b08 Imported translations 2017-10-11 12:32:56 +09:00
8e75a88b6a Try to fix notification not showing (ref #966) 2017-10-11 12:26:08 +09:00
ee0e361101 Improve error handling if config can't be opened 2017-10-10 21:52:31 +09:00
4941d7e412 Use startServiceForeground() on Android 8 (fixes #963) 2017-10-10 21:52:28 +09:00
cefd9dcfc0 Don't disable all settings when Syncthing is disabled 2017-10-09 13:11:15 +09:00
0b5649be98 Fix publish script and Travis build 2017-10-08 15:27:09 +09:00
7171402cbe Merge branch 'publish-script' 2017-10-08 15:08:01 +09:00
d74aba261d Add publish release script 2017-10-08 15:06:52 +09:00
a25579dc4e Bumped version to 0.9.15 2017-10-08 15:04:03 +09:00
4a4caa8d47 Update dependencies 2017-10-08 15:03:18 +09:00
102b274707 Imported translations 2017-10-08 15:00:10 +09:00
c56a7d022a Updated Syncthing to v0.14.39-rc.1 2017-10-08 14:49:17 +09:00
1aa6bc4af3 Show button to open logs if Syncthing takes long to load (ref #687) 2017-10-07 02:35:40 +09:00
d58a3c9634 Improve logging 2017-10-07 02:02:27 +09:00
1fd86211dc Moved Syncthing constants to seperate file 2017-10-04 17:44:56 +09:00
4c2b325676 Move all notification handling into common file 2017-10-04 00:40:59 +09:00
e184c43c3a Use Dagger to inject SharedPreferences 2017-10-04 00:19:30 +09:00
61d1119889 Improve log activity title 2017-10-03 22:46:23 +09:00
f1102dcc02 Add more translations for Google Play listing 2017-10-03 18:35:11 +09:00
e6c9960d0b More refactoring 2017-10-02 17:22:34 +09:00
be1be9746e Refactor DeviceStateHolder and receivers 2017-10-02 15:59:14 +09:00
9ad854defb Delete unit tests (they were terribly written) 2017-10-02 15:59:11 +09:00
4e32d60278 Refactor SyncthingService, moving killSyncthing() to background 2017-10-02 15:11:54 +09:00
84ae6953da Hide language preference on Android 24+ (fixes #952)
Reason copied from F-Droid:
Android 24 and later provides tons of languages, and a way to rank
multiple languages instead of choosing one.  The Languages pref is a
big hack and can be problematic, so its better to disable it when its
not needed.  This will make it so it is no longer possible to set
F-Droid to a language that the system does not support.
2017-09-29 03:21:55 +09:00
32be8ba207 Merged ToolbarActivity into SyncthingActivity 2017-09-27 22:02:12 +09:00
953f5e1e82 Update Travis CI to Android 26 sdk 2017-09-27 16:25:11 +09:00
653e54eb77 Fix crash when showing device ID if field is not set 2017-09-27 13:13:51 +09:00
dbd8818707 Properly check if file manager intent can be handled 2017-09-27 13:07:54 +09:00
94d72d768f Attempt to fix NPE when calling SyncthingService.getApi().isConfigLoaded() 2017-09-27 12:50:35 +09:00
8e1dfe875e Fix crash in MainActivity.onSaveInstanceState() 2017-09-27 12:35:34 +09:00
bdec750b34 Prevent crashes when dismissing dialogs 2017-09-27 12:25:18 +09:00
9ca1c8acd5 Revert "Poll web gui more frequently"
This reverts commit 5741928324.
2017-09-27 09:43:45 +09:00
3e85a5c182 Automatically restart app after update (fixes #845) 2017-09-27 09:31:48 +09:00