1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-26 14:21:16 +00:00
Commit graph

377 commits

Author SHA1 Message Date
Catfriend1
8bf63e4498 Update README and whatsnew 2019-03-17 14:01:11 +01:00
Catfriend1
d0773a5876 Update README / whatsnew 2019-03-11 22:09:53 +01:00
Catfriend1
9649c4fda3 Imported de translation 2019-03-11 19:29:51 +01:00
Catfriend1
b28394bc8f
Create folder dialog - trim folder label (fixes #367) (#368)
* FolderActivity: Trim folder label (fixes #367)

* Only trim if EXTRA_FOLDER_LABEL extra was set
2019-03-11 18:30:44 +01:00
Catfriend1
7a12674a88
Workaround cleanup of the folder marker by Huawei, Xiaomi firmware (fixes #131) (#363)
* WIP - preCreateFolderMarker

* Revert "WIP - preCreateFolderMarker"

This reverts commit 2a4db47f869334a0b4c7aab3073360e43cfbc218.

* Revert accidential syncthing upstream ref change

* Create .stfolder and DO_NOT_DELETE.txt within it (fixes #131)

* Refactor folder marker creation code into FolderActivity#preCreateFolderMarker (fixes #131)
2019-03-11 15:41:57 +01:00
Catfriend1
dde8d24e0c
Fix selecting parent folder after "Sharing to Syncthing" subfolder (fixes #365) (#366)
* folder_picker: Add icon on action bar to select

* Add drawable: ic_arrow_upward_white_24

* layout/folder_picker: Add folder_go_up (fixes #365)

* Reindent code

* Fix selecting parent folder after "Sharing to Syncthing" subfolder (fixes #365)
2019-03-11 09:43:50 +01:00
Catfriend1
055a72c390 Imported translations: sv, zh-rCN, zh-rTW 2019-03-10 12:44:52 +01:00
Catfriend1
af1b93b114 Add Constants#FILENAME_STIGNORE 2019-03-10 12:26:45 +01:00
Catfriend1
fdb748dd53 Update README / whatsnew 2019-03-09 23:10:23 +01:00
Catfriend1
c8502ccbd7
Fix "Share to Syncthing" when user didn't complete welcome wizard (fixes #354) (#360)
* Add string: complete_welcome_wizard_first

* Imported de translation

* Fix "Share to Syncthing" when user didn't complete welcome wizard (fixes #354)
2019-03-09 23:02:58 +01:00
Catfriend1
20e6a42ec0 Early merge PR #182 2019-03-09 16:58:17 +01:00
Catfriend1
dff782d735 ConfigXml: Use defaults from model (instead of hardcoded) (fixes #358) 2019-03-09 16:43:38 +01:00
Catfriend1
def8773dbb
Add pref to enable expert mode (fixes #256) (#328)
* Add prefs: verbose_log, expert_mode

* Update prefs in Constants

* Add service.AppPrefs

* Update fragments to read verbose log pref

* Update classes with context or inject to read verbose log pref

* Inherit ENABLE_VERBOSE_LOG from RestApi to Completion

* Restart whole app if verbose log pref was changed

* A line too much

* Revert expert mode pref (DELTA REVERT)

* Add expert mode pref (ref #256)

* Make ignoreDelete an expert option

* Make pullOrder and ignoreDelete expert options

* Make deviceCompression an expert option

* Import de translation
2019-03-09 16:15:37 +01:00
Catfriend1
dbe7838266
Add UI for "ignoreDelete" folder option (fixes #356) (#357)
* Add drawable: ic_delete_forever_black_24

* Update ConfigXml

* Update FolderActivity

* Update layout: activity_folder

* Add strings

* Import de translation
2019-03-09 15:52:36 +01:00
Catfriend1
e57caf96c2
Use model/Folder defaults for the camera folder (fixes #352) (#353) 2019-03-06 01:38:31 +01:00
Catfriend1
4b2dfd3b1b Update whatsnew 2019-03-06 01:24:00 +01:00
Catfriend1
0f135c1ed2 Poll faster on "modern" devices 2019-03-06 01:18:00 +01:00
Catfriend1
044404e9f0 Fix lint 2019-03-06 01:09:49 +01:00
Catfriend1
9ab2f280e0
Add "folder is unshared" status label (fixes #347) (#351)
* res/colors: Add text_orange

* strings: Add state_unshared

* Imported de translation

* Add "folder is unshared" status label (fixes #347)
2019-03-06 00:58:34 +01:00
Catfriend1
ce213b9c9e model/Folder: Add getDeviceCount 2019-03-06 00:47:50 +01:00
Catfriend1
8873111510 FoldersAdapter: Merge getLocalizedState into updateFolderStatusView 2019-03-06 00:44:26 +01:00
Catfriend1
f679ca2cc5
Show Android Open File Limit (fixes #346) (#350)
* Show Android Open File Limit (fixes #346)

* Imported de translation
2019-03-06 00:12:37 +01:00
Catfriend1
226b84a5d9
MainActivity/DeviceList: Improve "no devices configured" UI text (#349)
* Add string: no_devices_configured

* Imported de translation

* Add newline

* Import de translation
2019-03-05 23:58:34 +01:00
Catfriend1
9187280687
Enable largeBlocks for new folders by default (fixes #300) (#301)
* Enable largeBlocks for new folders by default (fixes #300)

* Remove duplicate code to set folder defaults on creation
2019-03-05 23:46:11 +01:00
Catfriend1
5151c3485b
Add model/Folder#CopyOwnershipFromParent (fixes #286) (#287)
* Add model/Folder#CopyOwnershipFromParent (fixes #286)

See https://github.com/syncthing/syncthing/pull/5479/files

* Fix typo, update doc ref

* Update ConfigXml
2019-03-05 23:40:42 +01:00
Catfriend1
c1abb476b6
Update SyncthingNative to v1.1.0 (#348)
* Use go stable instead of 1.9 for travis (#1283)

* Restore modules

* Update Syncthing submodule to v1.1.0

* Update .gitignore

* Update whatsnew
2019-03-05 23:23:52 +01:00
Catfriend1
e1f85548fb
Add folder dialog: "Tap to add device" if no devices are present (fixes #344) (#345)
* Add folder dialog: "Tap to add device" if no devices are present (fixes #344)

* Update string: devices_list_empty

* Add service/TestData

* activity_folder/layout: Make devicesContainer selectable from DPAD

* Imported de translation
2019-03-05 23:01:06 +01:00
Catfriend1
22a302d940 Add service/TestData 2019-03-05 22:59:42 +01:00
Catfriend1
675de8a53b Update whatsnew 2019-02-28 08:38:22 +01:00
Catfriend1
09585e213a
Update status tab text "not allowed to run on mobile data", clarify meaning (fixes #340) (#343)
* Update string reason_mobile_data_disallowed (fixes #340)

* Updated de translation
2019-02-28 08:32:23 +01:00
Catfriend1
3c2e7ddf76
fragmentManager: commitAllowingStateLoss (fixes #321) (#342) 2019-02-28 08:20:01 +01:00
Catfriend1
c6cf442d7a
Add Binary Eye barcode scanner support (fixes #325) (#339)
* Add Binary Eye barcode scanner support (fixes #325)

* Remove "Barcode Scanner" app as preferred choice (fixes #325)

* Add app recommendation: "Binary Eye"

* Imported de translation

* Updated whatsnew
2019-02-24 19:16:20 +01:00
Catfriend1
9933294ac5
Publish listings on GPlay (#338)
* Update build.gradle

* Remove unsupported translations

* Update publish-release.sh

* Update APK version to 1.0.1.7

* build.gradle: errorOnSizeLimit = false

* publish_release.sh: Add gradlew publishListingRelease

* Imported string translations

* Updated gplay translation: de_DE

* Add unsupported translations to .gitignore
2019-02-24 16:01:56 +01:00
Catfriend1
5c22110af6 Update README and whatsnew 2019-02-24 14:23:53 +01:00
Catfriend1
b17752aa5a Add label to explain why Syncthing Options are greyed out (fixes #337) 2019-02-24 14:22:56 +01:00
Catfriend1
180dbe6824 Updated gplay translations 2019-02-24 14:04:19 +01:00
Catfriend1
94918bb832 Imported string translations: nl, ru 2019-02-24 14:03:12 +01:00
Catfriend1
0d50bca3d8
Download Support Bundle (fixes #330) (#332)
* http/GetRequest: Add URI_DEBUG_SUPPORT

* Add ConfigXml#getGui

* Update model/Gui

* Add strings en-GB

* Add pref: webUIDebugging

* SettingsActivity: Add mWebUIDebugging, KEY_WEBUI_DEBUGGING

* Add pref button: downloadSupportBundle

* Add string: download_support_bundle_title

* Update string: webui_debugging_summary

* WIP

* WIP

* Use DownloadManager instead

* Revert "Use DownloadManager instead"

This reverts commit f2b24f5f295b27dd4d1aa2bed7bd2a08afce2159.

* Try sending auth to browser - unsafe

* Revert "Try sending auth to browser - unsafe"

This reverts commit 53523aad2e65147c99ee590cd0722c0e221fad8f.

* Add RestApi#downloadSupportBundle (fixes #330)

* Add SettingsActivity#onDownloadSupportBundleClick (fixes #330)

* FileUtils: Move getExternalStorageDownloadsDirectory code into separate function

* RestApi#downloadSupportBundle: Add callback for result UI

* SettingsActivity: Add UI to show if bundle download succeeded (fixes #330)

* Add strings for success, failure, in progress

* Add comment

* Imported de translation
2019-02-24 13:47:56 +01:00
Catfriend1
4ef5853b88 FileUtils: Move getExternalStorageDownloadsDirectory code into separate function 2019-02-24 13:30:54 +01:00
Catfriend1
06526c5547
Update model/Gui to syncthing v1.0.1 (#334)
* Update model/Gui

* Add ConfigXml#getGui
2019-02-24 11:53:05 +01:00
Catfriend1
cdcdc3c1c8
Add pref to enable verbose logging (#303)
* Add prefs: verbose_log, expert_mode

* Update prefs in Constants

* Add service.AppPrefs

* Update fragments to read verbose log pref

* Update classes with context or inject to read verbose log pref

* Inherit ENABLE_VERBOSE_LOG from RestApi to Completion

* Restart whole app if verbose log pref was changed

* A line too much

* Revert expert mode pref (DELTA REVERT)
2019-02-19 08:14:21 +01:00
Catfriend1
53d3c13403 MainActivity: Remove setOffscreenPageLimit (fixes #327) (fixes #321) 2019-02-19 08:02:28 +01:00
Catfriend1
88677c9638
Send a shutdown POST request first (fixes #320) (#323)
* Move notificationHandler shutdown from RestApi to SyncthingService

* http/PostRequest: Add shutdown uri

* Add RestApi#shutdown to post a shutdown request (fixes #320)

* SyncthingService#shutdown: Send a shutdown POST request first in case the kill via shell fails (fixes #320)
2019-02-12 02:22:34 +01:00
Catfriend1
cf94716059 Move notificationHandler shutdown from RestApi to SyncthingService 2019-02-12 02:02:42 +01:00
Catfriend1
e468f5a29c
Safeguard the buggy ViewPager (fixes #321) (#322) 2019-02-12 01:53:09 +01:00
Catfriend1
30efd903b5
Allow changing suggested path for new folder (fixes #309) (#318)
* Add pref: Suggested new folder root (fixes #309)

* Fix NPE in offline config reader (fixes #316)

after folder has been created while Syncthing was not running

* Fix language pref and root pref

* Fix action bar not showing on sub-prefs screen (fixes #317)

on Android < 7

* Add DATA, MEDIA to FileUtils#getExternalFilesDirUri (fixes #309)

* SettingsActivity: Remove pref "SuggestNewFolderRoot" on API < 21

* Update Constants

PREF_SUGGEST_NEW_FOLDER_ROOT_DATA, PREF_SUGGEST_NEW_FOLDER_ROOT_MEDIA

* Update FolderActivity#onPathViewClick (fixes #309)

to respect PREF_SUGGEST_NEW_FOLDER_ROOT_DATA

* Imported de translation
2019-02-12 00:24:26 +01:00
Catfriend1
ca17291561 Fix action bar not showing on sub-prefs screen (fixes #317)
on Android < 7
2019-02-10 13:53:39 +01:00
Catfriend1
3a7705bde6 Fix NPE in offline config reader (fixes #316)
after folder has been created while Syncthing was not running
2019-02-10 13:53:16 +01:00
Catfriend1
c130bdb7fc
Rename the misleading "Syncthing is disabled" (fixes #314) (#313)
* SettingsActivity: Remove duplicate strings

syncthing_disabled_title, syncthing_disabled

* Remove string: syncthing_disabled_title

* Remove string translations

* Update string: syncthing_disabled

* Updated all translations
2019-02-09 18:47:59 +01:00
Catfriend1
7bd253ab0e
Add device dialog: Implement refresh button and help (fixes #310) (#311)
* Add drawable ic_refresh_black_24

* Add device: Add refresh button to dialog

* Add device dialog: Implement refresh button (fixes #310)

Always show "No devices discovered label" and refresh button if no device ID had been entered yet.

* Update model/Options for SyncthingNative 1.0.1

* Add ConfigRouter#getOptions

* Add ConfigXml#getOptions

* Update README.md

* Add string: local_discovery_disabled

* Add device dialog: Show notice if local discovery is disabled

and explain how to enable it.

* Add device dialog: Show helpful text if no devices were discovered locally

* Updated de translation
2019-02-09 18:26:54 +01:00
Catfriend1
e5a033a64d
Add ConfigRouter#getOptions (#312)
* Add ConfigRouter#getOptions

* Add ConfigXml#getOptions
2019-02-09 17:42:41 +01:00
Catfriend1
3e6266b446 Update model/Options for SyncthingNative 1.0.1 2019-02-09 17:40:41 +01:00
Catfriend1
6b50c598ca Rename fragment_folder to activity_folder 2019-02-09 15:58:23 +01:00
Catfriend1
b99d03f9b9 Rename fragment_device to activity_device 2019-02-09 15:56:25 +01:00
Catfriend1
1163b1ec83
Add locally discovered devices to the "add device" dialog (fixes #305) (#306)
* ENABLE_TEST_DATA

* http/GetRequest: Add URI_SYSTEM_DISCOVERY

* Add model/DiscoveredDevice

* Add RestApi#getDiscoveredDevices (fixes #305)

* Add DeviceActivity#asyncQueryDiscoveredDevices in onServiceConnected (fixes #305)

* Add strings

* Add layout: item_discovered_device_form

* Add discoveredDevicesTitle, discoveredDevicesContainer to "add device" dialog (fixes #305)

* Revert "ENABLE_TEST_DATA"

This reverts commit b2efe73b9b4f7e9d4db8cc50cb48a5422f78c084.

* Fix lint error

* Updated de translation
2019-02-08 18:35:45 +01:00
Catfriend1
bc6f134046
Update Syncthing to v1.0.1 (#304)
* Update whatsnew

* Update APK version to 1.0.1.1 / 1000101

* Update syncthing submodule to v1.0.1
2019-02-05 23:31:01 +01:00
Catfriend1
697defb1a7
Add screen reader label (fixes #297) (#298) 2019-02-03 11:46:13 +01:00
Catfriend1
72709f3cb8
TipsAndTricks: Add "Backup pictures from phone to computer" (fixes #257) (#299)
* Add tip: tip_ignore_delete (fixes #257)

* Add strings for tip (fixes #257)

* Updated de translation
2019-02-03 11:42:18 +01:00
Catfriend1
976d4e05c2
Fix deferred native shutdown not working during State.STARTING (fixes #290) (#296)
Remove SyncthingService#mDestroyScheduled
2019-01-31 23:51:39 +01:00
Catfriend1
a30163ea1e
Don't crash if config got corrupted and inform the user (#295)
* Fix crash notification reason is off-screen (fixes #294)

* Indicate a broken config on the welcome wizard (fixes #293)

* SyncthingService must stop if the config got corrupted (fixes #292)

* Show crash notification extraInfo below notification title (fixes #294)

* Fix NPE when config elements gui, options are missing (fixes #291)

* Updated de translation

* Update en translation

* Updated translations

* Remove debug log
2019-01-31 23:17:42 +01:00
Catfriend1
1bdc8fe6ec
Remove boilerplate shell code (#289)
* Util#runShellCommand: Add BufferedReader

* Util: Correct class TAG

* SyncthingRunnable: Use Util.runShellCommand for "chmod 500"

* Util: Add notes

* LogActivity: Replace ProcessBuilder with Util.runShellCommandGetOutput

* SyncthingRunnable: Improve "error" message

* LogActivity: Show Android log by default

* SyncthingRunnable: Don't log if the chmod fail is expected on Android 5+

* LogActivity: Remove SyncthingNativeCode per line repetition if we are showing its own log
2019-01-29 20:41:44 +01:00
Catfriend1
37c11836e1
Fix ANR in SyncthingRunnable#getSyncthingPIDs (fixes #285) (#288)
* Use Util.runShellCommandGetOutput in SyncthingRunnable#getSyncthingPIDs (fixes #285)
2019-01-28 09:03:01 +01:00
Catfriend1
5911914fbf
Fix minimum free disk space setting not working (fixes #277) (#278)
* WIP

* Revert "WIP"

This reverts commit 98b34c47c6b844bd7c5a332360cd5965708e69d7.

* WIP

* Revert "WIP"

This reverts commit 3b9fc96d90708e4d4c0eef08f8372c5c4a2f2314.

* Add de/serializer for MinDiskFree

* Move MinDiskFree out of Folder

* Move MinDiskFree out of Folder (2)

* Revert "Move MinDiskFree out of Folder (2)"

This reverts commit 65f87db9a59c67d5a59eb713904976c78a5dcb9a.

* Revert "Move MinDiskFree out of Folder"

This reverts commit b71350bd105731d2763d95db7f3f1d1524328cfa.

* Revert "Add de/serializer for MinDiskFree"

This reverts commit 582742662942ece78658ebc3f7fa5c3ec91a5262.

* RestApi: Add MinDiskFreeSerializer, MinDiskFreeDeserializer

* Revert "RestApi: Add MinDiskFreeSerializer, MinDiskFreeDeserializer"

This reverts commit 3922f2451c48850c92e9403607bfb4edab8c591d.

* Test

* Revert "Test"

This reverts commit 355009565aaaf50efcf06c72bdff5b3466547a63.

* FolderActivity/DeviceActivity: Fix restApi unavailable in onCreate()

* Model/Folder#MinDiskFree: Initialize members (fixes #277)

* ConfigXml#getFolders: Add MinDiskFree (fixes #277)

* ConfigXml: Write back minDiskFree (fixes #277)

* Ignore notices about updating gradle dependencies

* ConfigXml: Make number parsing more safe

* FolderActivity#initFolder: Add new Folder.MinDiskFree

* Handle minDiskFree.value as String instead of float

* Revert "Handle minDiskFree.value as String instead of float"

This reverts commit 0552cfcbe139e99e575237a9b47ee4e888721c6f.

* WIP

* Revert "WIP"

This reverts commit 0a3df9144a86a396318c57a089d41da449d284dc.

* RestApi: Avoid creating duplicate Gson() instances

* Model/Folder: Use Integer instead of Float

See gson glitch:
https://github.com/google/gson/pull/1290
https://github.com/google/gson/issues/968

* Try MinDiskFree.value as Long instead of Integer

* Revert "Try MinDiskFree.value as Long instead of Integer"

This reverts commit d3588629818b3f75d30a2486a7c4583b0d4c99c7.

* Revert "Model/Folder: Use Integer instead of Float"

This reverts commit ca3931bd0d06cf500cff2443e4205f7c3211e777.

* Update model/Options: MinHomeDiskFree (fixes #277)
2019-01-27 20:41:02 +01:00
Catfriend1
fb07486404 ConfigXml: Make getOrDefault more safe by catching NumberFormatException 2019-01-27 20:06:08 +01:00
Catfriend1
e4dae20a3a
Fix leftover SyncthingNative instance after update in root mode (fixes #261) (#284)
* Reformat code

* Fix leftover SyncthingNative instance after update in root mode (fixes #261)
2019-01-27 20:01:18 +01:00
Catfriend1
78ba036df7
Save welcome wizard button state on screen rotation (fixes #281) (#283)
* Save welcome wizard button state (fixes #281)

* FirstStartActivity xml: Disallow focus for non-button elements

* Fix ViewPager taking focus on mouse click glitch on TV

* Provide key navigation if ViewPager accidentially took focus (fixes #281)
2019-01-27 19:22:39 +01:00
Catfriend1
f2eacf0401
Treat ethernet connection "like un-metered Wi-Fi" (fixes #280) (#282)
* Treat ethernet connection "like un-metered Wi-Fi" (fixes #280)

* Update string: run_on_wifi_summary

* Updated de translation

* Update explanation string: reason_wifi_disallowed

* Updated de translation
2019-01-27 16:23:44 +01:00
Catfriend1
56bdd740b5 RestApi: Avoid creating duplicate Gson() instances 2019-01-26 22:05:00 +01:00
Catfriend1
f9927aa603 FolderActivity/DeviceActivity: Fix restApi unavailable in onCreate() 2019-01-26 22:01:44 +01:00
Catfriend1
5c95fd29c9
Disable drawer menu action to open webUI on Android TV (fixes #275) (#276) 2019-01-24 20:49:32 +00:00
Catfriend1
56455fc89d
Device create/edit dialog: Check address input, fix losing changes on screen rotation (#270)
* Add comments

* Add model/Device#checkDeviceAddresses

* Add checkDeviceAddresses to device create dialog

* FolderActivity: Consolidate createDiscardDialog into showDiscardDialog

* folder_settings: R.id.create => R.id.save

* device_settings: R.id.create => R.id.save

* Edit device dialog: Offer back+discard and save action

* Add deviceNeedsToUpdate to savedInstanceState (fixes #271)

Remove dependency SyncthingService.OnServiceStateChangeListener

* Fix folder settings validation doesn't take place when editing folder (fixes #273) (fixes #265)

* Conditional label of the create/save button

* Remove workaround for rotation: mVersioning

* Fix folder.type is reset from SendOnly to Send&Receive on recreation of FolderActivity while creating a new folder (fixes #274)

* Fix typo

* Fix typo

* Fix typo

* Review - Relocate code

* Move null checks to the beginning of onSave

* Updated de translation

* Add ListenAddressesChanged to EventProcessor

as unhandled event.
2019-01-24 20:37:45 +00:00
Catfriend1
b2864cc3c5
Remove unused intent in WebViewActivity (fixes #268) (#269) 2019-01-23 20:18:00 +00:00
Catfriend1
0900d50379 Fix SSL handshake failed on Android 7.0 devices (fixes #262) (fixes #266) 2019-01-23 09:07:43 +01:00
Catfriend1
16769b137f Revert "Fallback to http on Huawei Nova (CAN-Lxx) (fixes #262) (#263)"
This reverts commit 04376d3bc8.
2019-01-23 09:01:11 +01:00
Catfriend1
04376d3bc8
Fallback to http on Huawei Nova (CAN-Lxx) (fixes #262) (#263) 2019-01-22 21:22:32 +00:00
Catfriend1
80d24c8843
Device overview: Show status "Syncing" in case of data throughput (fixes #240) (#260)
* Device overview: Show status "Syncing" in case of data throughput (fixes #240)

If (incoming_bits_per_second + outgoing_bits_per_second) top the threshold, we'll assume syncing state for the device reporting that data throughput.

* Imported de translation
2019-01-20 22:34:51 +00:00
Catfriend1
e479bf6f77
Use WebViewActivity in MainActivity#previewUr (fixes #241) (#259)
* WebViewActivity: Add intent with EXTRA_WEB_URL

* Use WebViewActivity in MainActivity#previewUr (fixes #241)

* Update string: Debug => Troubleshooting

* Update prepare-release.bash

* Imported de translation
2019-01-20 21:42:00 +00:00
Catfriend1
979088f4ca
Make status LED un-clickable, Reduce verbose logging (#254)
Change summary:
* Make status light un-clickable
* Add configurable verbose logging
* Reduce verbose logging
* Initialize model#Folder.label
* EventProcessor: Ignore event "FolderResumed"

Detailed changelog:

* Make status light un-clickable

* Initialize model#Folder.label

* Rename func to applyCustomRunConditions

* RunConditionMonitor: Make verbose log configurable

* ReceiverManager: Make verbose log configurable

* StatusFragment: Make verbose log configurable

* FolderListFragment: Make verbose log configurable

* DeviceListFragment: Make verbose log configurable

* RestApi: Make verbose log configurable

* SyncthingService: Make verbose log configurable

- Remove duplicate log lines referring to the same logic that happened
- Improved log levels

* RestApi: Log.v => LogV

* SyncthingApp ThreadPolicy - I'll need this later

* RestApi: Reduce logging

* applyCustomRunConditions: Log changes and result in non-verbose level

* EventProcessor: Ignore event "FolderResumed"

* RestApi#readConfigFromRestApi: Change log level to verbose

* SyncthingRunnable: Reduce log, make verbose log configurable
2019-01-20 14:06:49 +00:00
Catfriend1
f0d72e7a4b
Remove pref: Start directly into web gui (#253)
* Remove strings

* Remove pref

* Remove implementation
2019-01-20 13:11:12 +00:00
Catfriend1
71c5c494bc
Show toolbar when calling sub-pref screen (fixes #247) (#251)
* SettingsActivity: Fix var name

* Add verbose logging

* SettingsActivity: Use a handler to call sub pref screen (fixes #247)

* Add verbose log

* Fix toolbar ignoring input after going back from subpref screen

when directly opened in subpref screen before (fixes #247)

* Revert "Add verbose log"

This reverts commit 33207d0721dd38ce5efa04dddb891557ade6f5c3.

* SettingsActivity: Re-register actionbar after a subpref screen dismissal (fixes #247)
2019-01-20 12:54:55 +00:00
Catfriend1
beee401baa
Fix crash after sdcard was ejected (fixes #249) (#250) 2019-01-20 11:42:01 +00:00
Catfriend1
b8c35bc098 MainActivity: Use GravityCompat
instead of android.view.Gravity
2019-01-20 12:25:55 +01:00
Catfriend1
bb1aa8af50
Welcome wizard: Disable "back" button on keygen slide (fixes #239) (#248) 2019-01-19 22:38:16 +00:00
Catfriend1
d16ba49416
Improve visual hover indication on Android TVs (#246)
* Add drawables: menu white, black; settings_black (fixes #243) (fixes #244)

* Add drawable: button arrow_back

* Add button desc strings: open/close menu

* WIP: Try to fix issue #244

* WIP: Try to fix issue #244 (2)

* WIP: Try to fix issue #244 (3)

* Fix lint

* Add visual indication when hovering share icon in "Show Device ID" dialog (fixes #242)

* Updated de translation
2019-01-19 22:23:27 +00:00
Catfriend1
8eb94900ae Update whatsnew 2019-01-19 23:17:17 +01:00
Catfriend1
a8b3e4d2a0
Add WebView for Android TVs (fixes #227) (#225)
* WIP

* AndroidManifest: Add WebViewActivity

* Open WebViewActivity from prefs, move to "Debug" menu

* Add WebViewActivity below SettingsActivity

* Add strings for ssl security notice

* Handle web page links and ssl warnings correctly

* Mention issue tracker URL in pref summary

* Don't use ACTION_VIEW for deeplinks on syncthing's WebUI

* Rename string: report_issue_summary to open_issue_tracker_summary

* Imported translations

* Add "open in browser" drawable

* Add webview_options menu

* Add strings: web page loading, open in browser

* Add option to open webpage in browser on non-TV devices (fixes #227)

* Imported de translation
2019-01-19 14:53:36 +00:00
Catfriend1
55eabd4fea Remove unused Activity: RestartActivity 2019-01-19 11:54:01 +01:00
Catfriend1
89212bc956
More Android TV DPAD fixes (fixes #226) (fixes #228) (fixes #230) (fixes #231) (fixes #232) (fixes #233) (#229)
* Fix focus when editing folder (fixes #226)

* Don't show qr code scan button on TV (fixes #230)

* FolderActivity: Prevent accidential scroll by DPAD

* Make DPAD available in Custom Sync Conditions dialog (fixes #231)

* EnhancedEditText: Reformat code

* Remove blank

* DeviceActivity: Move code, set initial focus

* FolderActivity: Fix focus problems on phones with keyboard input (fixes #233)

* DeviceActivity: Set custom sync dialog focus from code (fixes #233)

* DeviceActivity: Use setOnClickListener instead of implementing View.OnClickListener

* fragment_folder: focusableInTouchMode => focusable

* Edit device dialog: Show copy device ID row or edit, scan device row

* Fix unused, outdated refs

* Constants: Static implies final

* Remove double semicolon

* Remove double semicolon

* Remove unused imports

* Remove unnecessary return in void func

* Fix javadoc errors (fixes #234)

* Fix typos

* Fix focus problem on TV/device edit dialog

* Fix create folder dialog focus on TV (fixes #228)
2019-01-19 11:49:41 +01:00
Catfriend1
495c3e9eb6
Fix typos (#236) 2019-01-18 23:26:57 +01:00
Catfriend1
1154fc021e
Fix 20 javadoc errors (fixes #234) (#235)
* Fix unused, outdated refs

* Constants: Static implies final

* Remove double semicolon

* Remove double semicolon

* Remove unused imports

* Remove unnecessary return in void func

* Fix javadoc errors (fixes #234)

* Remove blank

* EnhancedEditText: Reformat code

* Fix imports
2019-01-18 23:06:27 +01:00
Catfriend1
4487857785
Android TV: Handle DPAD input (fixes #194) (#223)
Android TV: Handle DPAD input too (fixes #194)
2019-01-16 09:24:48 +01:00
Catfriend1
cfc1197987
Small translation fixes and updates (#224)
* Add translatable="false" to URLs

* Remove untranslatable strings from other langs

* Updated ru translation

* Updated zh-rCN translation
2019-01-16 02:00:13 +01:00
Catfriend1
889a88f69f
Add contentDescription to actionShareId (fixes #219) (#220) 2019-01-12 19:52:41 +01:00
Catfriend1
2ecba33052
Remove welcome slide dots from screen reading (fixes #216) (#217)
* Remove welcome slide dots from screen reading

according to advice from the prelaunch report.

* Try setImportantForAccessibility on TextViews

* Update APK version to 1.0.0.7

* Try setContentDescription

* Update APK version to 1.0.0.8

* Update APK version to 1.0.0.9

* Add meaningful content description

in case a screen reader unintentionally reads out loud

* Update APK version to 1.0.0.10

* Fix type conversion

* Update APK version to 1.0.0.11

* Add views/CustomViewPager

* Use CustomViewPager in FirstStartActivity

* FirstStartActivity: Use CustomViewPager

* Add main menu string for screen readers

* Reformat code

* Try toolbar.setNavigationContentDescription

* Update APK version to 1.0.0.12

* Import de translation
2019-01-12 17:54:08 +01:00
Catfriend1
398cbd4880
Update translations (#215)
* Updated zh_CN translation

* Updated ru-RU translation
2019-01-12 12:32:09 +01:00
Catfriend1
7b82062f54
Detect if another app/process is blocking the tcp port (fixes #193) (#209)
* Add Util#isTcpPortListening (fixes #193)

* Move model/Config.Gui to model/Gui

* Constants: Add default tcp ports

* Add string: webui_tcp_port_unavailable

* Add ConfigXml#getWebGuiBindPort

* Check if webUI tcp port is available before launching native (fixes #193)

Output failure notification if the port is allocated by someone else.

* Settings UI - Valid tcp ports are from 1024 to 65535 (fixes #211)

* Add tcp6 listen port detection, check on connState == LISTEN

* Update translations de
2019-01-07 20:48:04 +01:00
Catfriend1
2e034c0239
Update play presentation (#207)
* Add transifex to fulldescription

* Update translations - app/src/main/play - fulldescription

* Update feature_graphic

* Add listing/icon 32-bit png with alpha

* Move tv banner into correct res folder

* Remove tv banner from drawable-nodpi according to lint

* Add banner drawables for alternative dpi

* Move promo graphic

* Add wearScreenshots folder

* Move tvBanner
2019-01-06 19:13:02 +01:00
Catfriend1
a984dd038e Update gplay en-GB fulldescription 2019-01-06 04:40:57 +01:00
Catfriend1
ae2e1874a4
Fix ANR while processing deleted files (fixes #199) (#204)
* Refactor file event finisher into EventProcessor#onItemFinished

EventProcessor: Add new unhandled event "FolderWatchStateChanged"

* Perform ContentResolver.delete operations asynchronously (fixes #199)
2019-01-06 03:46:04 +01:00
Catfriend1
c96786bcb9
Fix edit folder dialog and resource window leaks (fixes #200) (fixes #202) (fixes #203) (#201)
#200 - Cannot change folder type or pull order in wrapper UI
#202 - User selections are lost if screen rotation changes during folder edit
#203 - Edit folder dialog - AlertDialogs leak on screen rotation
2019-01-06 02:59:31 +01:00