1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2025-02-02 23:31:36 +00:00
Commit graph

134 commits

Author SHA1 Message Date
Simon Frei
573a1de326
Remove incorrect assumption that event data is always a map (fixes #1884) (#1917) 2023-06-17 12:16:53 +02:00
Bnyro
e46ec1cfee
Migration to Material Design 3 (fixes #1833, fixes #1418) (#1895) 2023-05-10 22:21:03 +02:00
Simon Frei
2942072594
Compile and target SDK version 31, increase min Sdk to 21 (#1864)
The upgraded compile SDK requires an upgrade of gradle, which introduces a
build error with api lvl <21:
   > Error while processing [...]/app/src/main/res/drawable/ic_close_24dp.xml :
     Invalid color value ?attr/colorControlNormal
Explanation: https://stackoverflow.com/a/49501629

Also minor NDK update
2022-11-27 20:27:54 +01:00
Simon Frei
b89c9833eb
Set FLAG_IMMUTABLE on PendingIntent (target 31) (#1868)
Co-authored-by: Catfriend1 <16361913+Catfriend1@users.noreply.github.com>
2022-11-27 20:24:35 +01:00
Simon Frei
d8413c6e11
Fix lint failure (target 31) (#1869) 2022-11-27 20:24:14 +01:00
Simon Frei
4a81083abb
Fix default for global run condition setting (fixes #1852) (#1863) 2022-11-23 19:24:13 +01:00
o13e
d46fe60888
Remove copied device ID toast on android 13+ (#1854)
https://developer.android.com/develop/ui/views/touch-and-input/copy-paste#duplicate-notifications
2022-11-16 20:08:14 +01:00
LightningRS
30ce89b9ee
Fix potential NPE in ShareActivity (#1839) 2022-10-21 11:02:26 +02:00
fps.io
892fdea2ea
Add preference for enabling run conditions (workaround for #1822) (#1823) 2022-08-23 21:46:38 +02:00
fps.io
5c04dab7b2
Remove activity from recents list on exit (fixes #1805) (#1824) 2022-08-15 17:27:51 +02:00
Niccolò Maggioni
83ee3f3db9
Add delay for charging detection (fixes #1595) (#1817) 2022-08-11 21:54:46 +02:00
Simon Frei
5817ed4e07
Don't call mediastore on file changes on android >=10 (fixes #1801) (#1803) 2022-07-11 12:16:29 +01:00
Simon Frei
07162121e4
Correctly check db dir existence (fixes #1753) (#1755) 2022-02-09 10:42:03 +01:00
Simon Frei
1634019cc1
Bumped version to 1.19.0.2 2022-02-07 12:30:59 +01:00
Simon Frei
28bdd4421d
Fallback to shell if db deletion fails (fixes #1753) (#1754) 2022-02-07 09:16:28 +01:00
Simon Frei
81698e1acc
Bump android api level to 30 (ref #1721) (#1724) 2021-12-23 18:32:28 +01:00
Simon Frei
66cf49665c
Adjust to API change regarding pending folders/devices (#1678) 2021-07-27 12:50:35 +02:00
Simon Frei
abd8e9bc2f
Add folder-device with enc-password (fixes #1673) (#1674) 2021-07-18 13:06:57 +02:00
Simon Frei
733f873ae3
Stop camera when exiting QR scan with back button (fixes #1614) (#1641) 2021-04-19 16:21:37 +02:00
Simon Frei
517c5ca73d
Update zxing-android-embedded and small related fixes (#1642) 2021-04-19 16:20:20 +02:00
Simon Frei
b03d2465dc
Target android sdk 29 (#1575) 2020-12-12 16:20:06 +01:00
Sumit Anantwar
e12663f321
Add Internal Activity for QR Code Scanner (#1556)
* add internal QR Scanner Activity

* add CAMERA permission to Manifest

* add dimension for Button Height

* remove non-existent RestartActivity from Manifest

* accept licenses for Android SDK 29

* rollback gradle to 3.6.3

* add dependency for zxing:core:3.3.0 to support Android API 14+
2020-10-09 07:52:38 +01:00
Praveen Rajput
cdf6a69d1f
Theme: follow system default #1515 (#1555)
- Now app by default follows system theme for api level 28 and higher, for api level below 28, it fall backs to light theme.
2020-09-28 12:32:34 +01:00
Catfriend1
5cec53c8c7
Maybe fix root problems since v1.5.0+ / STMONITORED="1" (fixes #655) (#1505) 2020-05-17 16:51:31 +02:00
dependabot-preview[bot]
d657bfdc09
Bump dependencies (AndroidX, com.github.triplet.play 2.7.5, gradle 3.6.3) (#1491)
* Bump com.github.triplet.play from 2.5.0 to 2.7.5

Bumps com.github.triplet.play from 2.5.0 to 2.7.5.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Fix com.github.triplet.play dependency setup

* gradle-wrapper.properties: Update gradle 6.0.1 > 6.2.2

from: 5ad55348b8

* build.gradle: Update "com.android.tools.build:gradle" from 3.5.3 to 3.6.3

* gradle.properties: + android.useAndroidX=true

* Migrate to AndroidX: import androidx.databinding.DataBindingUtil

* Create setenv.cmd

* Fix lint error: RtlCompat

Right-to-left text compatibility issues
../../src/main/res/layout/activity_firststart_slide1.xml:46: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal"
 43             android:paddingLeft="@dimen/desc_padding"
 44             android:paddingRight="@dimen/desc_padding"
 45             android:text="@string/welcome_text"
 46             android:textAlignment="center"

 47             android:textColor="@android:color/white"
 48             android:textSize="@dimen/slide_desc" />
 49
../../src/main/res/layout/activity_firststart_slide2.xml:61: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal"
 58             android:paddingLeft="@dimen/desc_padding"
 59             android:paddingRight="@dimen/desc_padding"
 60             android:text="@string/storage_permission_desc"
 61             android:textAlignment="center"

 62             android:textColor="@android:color/white"
 63             android:textSize="@dimen/slide_desc" />
 64
../../src/main/res/layout/activity_firststart_slide3.xml:61: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal"
 58             android:paddingLeft="@dimen/desc_padding"
 59             android:paddingRight="@dimen/desc_padding"
 60             android:text="@string/location_permission_desc"
 61             android:textAlignment="center"

 62             android:textColor="@android:color/white"
 63             android:textSize="@dimen/slide_desc" />
 64
../../src/main/res/layout/fragment_external_versioning.xml:11: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal"
  8         android:layout_height="wrap_content"
  9         android:layout_margin="10dp"
 10         android:text="@string/command"
 11         android:textAlignment="center"

 12         android:textColor="@android:color/black"
 13         android:textSize="18sp"
 14         android:textStyle="bold" />
../../src/main/res/layout/fragment_simple_versioning.xml:23: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal"
 20             android:layout_height="wrap_content"
 21             android:layout_margin="10dp"
 22             android:text="@string/keep_versions"
 23             android:textAlignment="center"

 24             android:textColor="@android:color/black"
 25             android:textSize="18sp"
 26             android:textStyle="bold" />
../../src/main/res/layout/fragment_staggered_versioning.xml:17: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal"
 14             android:layout_width="match_parent"
 15             android:layout_height="wrap_content"
 16             android:text="@string/maximum_age"
 17             android:textAlignment="center"

 18             android:textColor="@android:color/black"
 19             android:textSize="18sp"
 20             android:textStyle="bold"
../../src/main/res/layout/fragment_staggered_versioning.xml:44: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal"
 41             android:layout_height="wrap_content"
 42             android:layout_margin="10dp"
 43             android:text="@string/versions_path"
 44             android:textAlignment="center"

 45             android:textColor="@android:color/black"
 46             android:textSize="18sp"
 47             android:textStyle="bold"
../../src/main/res/layout/fragment_trashcan_versioning.xml:23: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal"

* AndroidManifest: Add permission ACCESS_FINE_LOCATION

Ref.: 5755ed45ad

* Migrate to AndroidX, solves lint error "IncompatibleGradle"

according to:
- b04489e062

* Fix lint error: MissingPermission, catch SecurityException

* Revert "Create setenv.cmd"

This reverts commit e39c460837.

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Catfriend1 <Catfriend1@users.noreply.github.com>
2020-05-17 15:04:32 +01:00
Jakob Borg
72c6dfb8d0
Create empty file in marker directory (fixes #1249) (#1490)
* Create empty file in marker directory (fixes #1249)

HTH

* wip
2020-04-02 16:48:28 +01:00
Simon Frei
4414dcc8a4
Bump gradle from 3.1.3 to 3.4.2 (#1381)
* Bump gradle from 3.1.3 to 3.4.2

Bumps gradle from 3.1.3 to 3.4.2.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Fix mistakes resulting in build errors after gradle upgrade
2019-08-15 11:48:23 +02:00
Cody Mingus
3e0e983868 Adding dark theme (closes #653) (#1301) 2019-06-13 16:48:32 +02:00
Audrius Butkevicius
90272c4ece Revert "Support Variable Size Blocks (VSB)" (#1344) 2019-06-12 23:00:54 +02:00
admin_3.exe
a65e60b005 Don't open keyboard on save to Syncthing (#1328) 2019-06-04 22:48:57 +02:00
Catfriend1
cc4d1b4fcf Show notification badge if user interaction is required (#1310) 2019-04-27 09:14:39 +01:00
Max
6a36c2d5c0 Disable badge for persistent notification (fixes #1305) 2019-04-21 00:45:24 +02:00
Catfriend1
4537a28d75 Fallback to http if https with TLS 1.2 is unavailable (fixes #1255) (#1281) 2019-02-28 21:13:57 +01:00
Simon Frei
462a013ae2 Fast forward master to current release branch (#1282)
* Bump version number

* Restore modules

* Bump version

* Revert "Disable HTTPS (fixes #1255)"

This reverts commit 1f82ec0fc6.

* Bump version
2019-02-26 19:49:57 +00:00
Audrius Butkevicius
1f82ec0fc6
Disable HTTPS (fixes #1255) 2019-02-22 22:52:46 +00:00
Catfriend1
a7e6fb9118 Support Variable Size Blocks (VSB) (#1270)
* Support Variable Size Blocks (VSB) (fixes #153) (#156)

* ConfigXml/Folder - Add "useLargeBlocks"

* Update folder model defaults

* UI for Variable Size Blocks (VBS) (fixes #153)

* Prepare model/Folder for Syncthing 1.0.1
2019-02-12 22:21:39 +00:00
Catfriend1
94c94b4216 Fallback to built-in path selector (#1272) 2019-02-12 07:31:17 +00:00
Martin Carpella
700c55e9d3 Show reasons for disabled service in notification dialog (#1264) 2019-01-21 21:05:45 +00:00
Catfriend1
346cc35237 Fix Syncthing getting killed by ActivityManager when started using Intent (fixes #1247) 2019-01-09 21:49:58 +00:00
Catfriend1
d376ed7938 Fix home volume not recognized on Android 8 (fixes #58) (#59)
* Fix home volume not recognized on Android 8 (fixes #58)

* Fix Downloads volume not recognized on Android 8
2018-10-03 19:41:15 +01:00
Catfriend1
37c4574eca Fix UI glitch - folder type explanation not updating (fixes #53) (#54) 2018-10-03 19:41:15 +01:00
Catfriend1
55915d7956 Fix crash when ignoring devices or folders (fixes #50) (#52) 2018-10-03 19:41:15 +01:00
Catfriend1
34faf02e3c Fix override changes button not showing (fixes #38) (#39) 2018-10-03 19:41:15 +01:00
Catfriend1
54daf43d6f Fix phone plugged to charger detection (#27) 2018-10-03 19:41:15 +01:00
Catfriend1
ecd44b231f Speed up syncthing startup and reduce log spam (#60) 2018-10-03 19:41:14 +01:00
Catfriend1
f915331114 Fix DeviceListFragment NPE on Comparator (#20) 2018-10-03 19:41:14 +01:00
Catfriend1
680eb7dc86 Add "useLargeBlocks" to model/Folder.java (#1215) 2018-08-12 10:38:58 +01:00
Catfriend1
3bd1c753a6 Root only - Temporarily increase fs.inotify.max_user_watches to 128K (fixes #1208) (#1209)
Forum discussion: https://forum.syncthing.net/t/android-failed-to-set-up-inotify-handler-please-increase-inotify-limits/11924/15
2018-08-07 18:22:15 +01:00
Catfriend1
4b7024bf8a Add "receiveonly" folder type to UI and model (fixes #1210) (#1211) 2018-08-07 13:14:21 +01:00
Catfriend1
6a04d640bd
Improve run conditions and run conditions UI (#1189)
* WIP - Extend run condition monitor functions

* WIP - Better run conditions UI

* WIP - Allow applying run conditions to foreground and background
execution of the syncthing app

* WIP - Add mobile data run condition

* WIP - Fix RunConditionMonitor#onSharedPreferenceChanged

* WIP - Directly go to SettingsActivity#Run_Conditions screen
after the "change run condition" button has been clicked in
StateDialogActivity during STATE_DISABLED

* Disable Syncthing in flight mode (fixes #1173)
... and allow to enable it on phone that have problems
detecting wifi connection if the user manually enables
one during flight mode.

* Add run condition "Run on metered wifi" (fixes #937)

* Improve string

* Add run condition "Respect Android Auto-sync data quick toggle" (fixes #588)

* Remove SharedPreferences.OnSharedPreferenceChangeListener

* Added SyncthingService#reEvaluateRunConditions

* Implement mPendingRunConditions in SettingsActivity
to queue run condition changes until the user leaves
the preferences screen after making changes. (fixes #1196)

* Rename reEvaluateRunConditions to evaluateRunConditions
according to review

* Fix implementation of ContentResolver.removeStatusChangeListener

* Reordered run conditions
wifi, metered wifi, wifi whitelist, mobile data

* Review 1/2

* Fix logic for metered/non-metered wifi run condition

* Remove PreferenceScreen dividers on API level > 21

* Revert "Remove PreferenceScreen dividers on API level > 21"

This reverts commit ec037b02e4.

* Detect changes made to wifi connections in android's data usage dialog
related to the metered wifi flag.

* Review - Minor string improvements
Removed unused variable from RunConditionMonitor
Move always_run_in_background pref to pref category
"Behaviour".

* Review - "Start service automatically on boot" string

* Remove unused strings
2018-08-02 10:50:21 +02:00