Commit graph

315 commits

Author SHA1 Message Date
Gaurav Ujjwal
a5f3faedba Misc. translation updates 2022-03-27 22:47:40 +05:30
Gaurav Ujjwal
45929278ee Remove Single-tap gesture preference
Since the implementation of relative mode, only remaining use of this
pref was to disable Single-tap gesture, which I doubt anyone uses.
2022-03-27 22:24:03 +05:30
Gaurav Ujjwal
6526cb86b2 Restore option to hide remote pointer
It is now available as a global preference.
2022-03-27 22:12:51 +05:30
wang
5780d08a9d Translation updates from Weblate
Added new language using Weblate (Polish)
Added new language using Weblate (Chinese (Simplified))

Translated using Weblate (Turkish)
Translated using Weblate (Ukrainian)
Translated using Weblate (French)
Translated using Weblate (Portuguese (Brazil))
Translated using Weblate (Norwegian Bokmål)

Co-authored-by: Andrij Mizyk <andmizyk@gmail.com>
Co-authored-by: Саша Петровић <salepetronije@gmail.com>
Co-authored-by: Allan Nordhøy <epost@anotheragency.no>
Co-authored-by: Nathan <bonnemainsnathan@gmail.com>
Co-authored-by: J. Lavoie <j.lavoie@net-c.ca>
Co-authored-by: Luiz-bro <luiznneto1@gmail.com>
Co-authored-by: wang <wwj402@sina.com>
Co-authored-by: Oğuz Ersen <oguz@ersen.moe>
Co-authored-by: WaldiS <sto@tutanota.de>
2022-03-27 10:49:24 +05:30
Gaurav Ujjwal
ee28bf184d Add preference for swipe sensitivity 2022-03-26 23:40:32 +05:30
Gaurav Ujjwal
c6b28ea6f1 Implement 'pan-with-cursor' for relative action mode 2022-03-26 23:19:53 +05:30
Gaurav Ujjwal
ce2736ed20 Fix incorrect cursor rendering at (0,0) position 2022-03-26 17:47:08 +05:30
Gaurav Ujjwal
36d8b66cae Use correct range for pointer position coercion 2022-03-26 17:45:51 +05:30
Gaurav Ujjwal
f0475ccdcf Remove workaround required to sync pointer position in relative mode
As client-side cursor rendering is now supported, most servers will now
send message about the real pointer position.
2022-03-26 13:38:32 +05:30
Gaurav Ujjwal
d04e19be58 Disable Fling gesture in relative action mode.
Because 1-finger swipe is used for moving the mouse, fling gesture can be
confusing/bothering as it moves the frame instead of mouse.
2022-03-26 13:29:42 +05:30
Gaurav Ujjwal
52607e2b21 Implement client-side cursor rendering
If supported by server, client-side cursor rendering gives us significant
boost in cursor responsiveness. This also unlocks many other features:

1. Most servers will now report mouse movements done unilaterally on server.
This info will help with touchpad/relative action mode.

2. We can now add the ability to follow cursor while zoomed-in (it was possible
before, but looked really ugly).

3. It serves as a workaround for cursor-invisibility in TightVNC.
2022-03-25 22:57:23 +05:30
Gaurav Ujjwal
c64140d1b2 Native refactoring: Extract miscellaneous utilities 2022-03-25 22:57:23 +05:30
Gaurav Ujjwal
e068d89eae Native refactoring: Extract client extension 2022-03-25 22:57:23 +05:30
Gaurav Ujjwal
a518be5a7a Don't set ID for ServerProfile created during Discovery
A non-zero ID is used to differentiate between saved/non-saved profiles.
(May we should have a better way for that?)

Regression from: 2b64933fcb
2022-03-24 23:37:15 +05:30
Gaurav Ujjwal
388ccc8176 Handle the initial touch-point of scroll gestures by Stylus 2022-03-07 22:17:31 +05:30
Tuan Pham
239f993082
Add option to remap back press from mouse device (#59)
Co-authored-by: Tuan Pham <tuanp.swe@gmail.com>
2022-02-24 22:00:30 +05:30
Hosted Weblate
555ea0a483 Translations update from Hosted Weblate
Translated using Weblate (Norwegian Bokmål)
Translated using Weblate (Serbian)
Translated using Weblate (Ukrainian)
Translated using Weblate (French)

Co-authored-by: Andrij Mizyk <andmizyk@gmail.com>
Co-authored-by: Саша Петровић <salepetronije@gmail.com>
Co-authored-by: Allan Nordhøy <epost@anotheragency.no>
Co-authored-by: Nathan <bonnemainsnathan@gmail.com>
Co-authored-by: J. Lavoie <j.lavoie@net-c.ca>
2022-02-21 00:14:03 +05:30
Oğuz Ersen
b29710119e Translated using Weblate (Turkish) 2022-02-20 23:41:59 +05:30
Fabriel
6293385d88
New translation: Turkish (#61) 2022-02-18 22:20:10 +05:30
Gaurav Ujjwal
8c7f3b07bc Add workaround for devices where mouse right-click is treated as back-press
GitHub issue #53
2022-02-13 21:13:14 +05:30
Gaurav Ujjwal
bbda1b8e62 Assign a different App ID to CI-built APKs
It allows the APKs to be installed alongside Release version.
2022-02-03 11:39:32 +05:30
Gaurav Ujjwal
dddad7b914 Switch to 'release' builds on GitHub Actions
Because PRs cannot access GitHub Secrets, they will continue with the debug variant.
2022-02-02 22:15:11 +05:30
Gaurav Ujjwal
921601c05b Release v1.7.0 2022-02-02 17:55:11 +05:30
Gaurav Ujjwal
d180fafc5e Remove unused strings 2022-02-02 17:53:52 +05:30
Gaurav Ujjwal
5bc110479b Initialize LivePref lazily
It avoids unnecessary observer registrations.
2022-02-02 17:53:42 +05:30
Gaurav Ujjwal
e3e4e86305 Don't reset discovered servers if list is already empty
Updating discovered servers will trigger a cascade of operations.
RecyclerView will launch list-differ, all indicators will be notified,
and data-binding will be triggered.

If list is already empty, all this work is unnecessary & wasteful.
2022-01-29 19:02:58 +05:30
Gaurav Ujjwal
bfc0607870
Create FUNDING.yml 2022-01-29 19:00:26 +05:30
Weblate (bot)
3e04963715
Translations update from Hosted Weblate (#50)
Added new language using Weblate (Ukrainian)

Translated using Weblate (Serbian)
Translated using Weblate (Norwegian Bokmål)
Translated using Weblate (French)


Co-authored-by: Andrij Mizyk <andmizyk@gmail.com>
Co-authored-by: Саша Петровић <salepetronije@gmail.com>
Co-authored-by: Allan Nordhøy <epost@anotheragency.no>
Co-authored-by: Nathan <bonnemainsnathan@gmail.com>
2022-01-29 16:17:49 +05:30
Gaurav Ujjwal
26d303ebbd Refactor connection state
Until now, connection state was managed in VncClient. This was fine before
introduction of SSH Tunnel, but now, state in VncClient may not fully reflect
the state transitions. Moreover, most of the time we simply check whether
we are connected or not.

Now, simple boolean state is managed by VncClient, and more granular state
is managed by VncViewModel.
2022-01-28 21:38:01 +05:30
Gaurav Ujjwal
781263fc5f Stabilize rediscovery indicator
- Reimplemented from scratch, less hacky
- Preference change no longer requires app restart to take effect
- Moved the preference to Discovery section to provide more context
2022-01-25 12:56:16 +05:30
Gaurav Ujjwal
2b64933fcb Refactor Discovery
Instead of having different (and confusing) timeouts/restart settings, we now have
a single 'Autorun' mode. When enabled, we keep discovering servers as long as
HomeActivity is in foreground, and automatically stop in background.
So discovered servers won't become stale after timeout.
2022-01-25 12:56:16 +05:30
Gaurav Ujjwal
2b6441080f Remove obsolete comment
Fixes #46
[skip ci]
2022-01-16 21:29:18 +05:30
Gaurav Ujjwal
db275ce209 Re-implement Login auto-completion 2022-01-14 16:08:36 +05:30
Weblate (bot)
8bcae288e0
Translations update from Hosted Weblate (#47)
Translated using Weblate (Persian)
Translated using Weblate (French)
Translated using Weblate (Norwegian Bokmål)

Co-authored-by: Eshagh Shahedany <eshagh094@gmail.com>
Co-authored-by: Nathan <bonnemainsnathan@gmail.com>
Co-authored-by: J. Lavoie <j.lavoie@net-c.ca>
Co-authored-by: Allan Nordhøy <epost@anotheragency.no>
2022-01-14 14:11:21 +05:30
Gaurav Ujjwal
ef107b1fd3 Release v1.6.0 2022-01-10 21:26:12 +05:30
Gaurav Ujjwal
c29b8431f3 Implement trackpad/touchpad mode
To activate it, disable "Settings => Input => Gestures => Direct touch".
When active, swipe gesture moves the pointer,
and all actions happen at pointer position.

Mouse and stylus devices are NOT affected.
2022-01-10 18:30:42 +05:30
Gaurav Ujjwal
8b85396e5d Add ListPreferenceEx 2022-01-10 16:16:07 +05:30
Weblate (bot)
6c0299446c
Translations update from Hosted Weblate (#45)
Translated using Weblate (Portuguese (Brazil))
Translated using Weblate (French)
Translated using Weblate (Norwegian Bokmål)
Translated using Weblate (Persian)

 Added new language using Weblate (Russian)
 Added new language using Weblate (Serbian)


Co-authored-by: J. Lavoie <j.lavoie@net-c.ca>
Co-authored-by: Gaurav Ujjwal <gujjwal00@gmail.com>
Co-authored-by: Allan Nordhøy <epost@anotheragency.no>
Co-authored-by: Eshagh Shahedany <eshagh094@gmail.com>
Co-authored-by: Artem <Localizer_in_Russian@protonmail.com>
Co-authored-by: Саша Петровић <salepetronije@gmail.com>
2022-01-10 13:32:37 +05:30
Gaurav Ujjwal
f60f4f9772 Update pref string 2022-01-10 09:40:11 +05:30
Gaurav Ujjwal
823a633edc TouchHandler: Use GestureDetector for scroll events of Drag gesture 2022-01-09 22:16:55 +05:30
Gaurav Ujjwal
049714f9ea Move 'Two-finger tap' preference
Now, all point preferences are together, followed by swipe preferences.
2022-01-09 15:56:41 +05:30
Gaurav Ujjwal
08117b45f9 Simplify 'Mouse passthrough' summary 2022-01-09 15:48:51 +05:30
Gaurav Ujjwal
7fd428b6d5 Update app description 2022-01-09 12:43:08 +05:30
Gaurav Ujjwal
1d11afb829 FrameState: Optimize base scale for portrait-mode framebuffers
Until now, base scale was optimized only for landscape-mode framebuffers.
2022-01-08 23:41:14 +05:30
Gaurav Ujjwal
9af1e88969
Improve English strings (#44)
- Consistently use 'Sentence case' for strings
- Remove unnecessary punctuation
- Simplify phrases
2022-01-08 12:15:13 +05:30
Gaurav Ujjwal
fd2314f004 Update Portuguese translations
Suggested by: João Paulo
2022-01-03 08:10:08 +05:30
Gaurav Ujjwal
4382b6b46d Extract hard-coded string to resources 2022-01-03 07:52:40 +05:30
Gaurav Ujjwal
c94559f620 Drop experimental status from 2 finger tap gesture 2022-01-02 22:00:48 +05:30
Eshagh Shahedany
9b8d41fc9d Translated using Weblate (Persian) 2022-01-01 18:29:01 +05:30
J. Lavoie
cd285ca597 Translated using Weblate (French)
Added new language using Weblate (French)

Translate-URL: https://hosted.weblate.org/projects/avnc/app/fr/
2022-01-01 18:29:01 +05:30