Commit Graph

2106 Commits

Author SHA1 Message Date
tomFlowee a79e8ff1df Test and fix fiat rendering in some cases
In some locales the group separator is a unicode character that does not
fit in an 8 byte string, causing misrenderings.
We now assume that things fit in 16 bit characters which should fit all
living languages.
2025-03-07 23:27:08 +01:00
tomFlowee 0bb6bb0bf5 Fix includes
Avoid the includes of whole modules, which is expensive and
unpredictable.
2025-03-07 23:27:08 +01:00
tomFlowee 8f388f93f1 Fix bug reported by PL translator; wrong month
This uses the form of the month for 'writing', which is different in some
languages than the form used in an exact date.
2025-03-07 23:27:08 +01:00
tomFlowee d8a72d2a48 Import crowdin translations 2025-03-07 23:27:08 +01:00
tomFlowee 61155c137c Import crowdin translations 2025-03-07 18:31:57 +01:00
tomFlowee a204561557 Check Android powersave mode.
The background service is turned off when the phone is in powersave
mode.
Additionally we don't run any sync in background if the app isn't
active.
2025-03-07 18:31:57 +01:00
tomFlowee 27c9362542 Add a bit of powermanagement for Android.
The Android system is so strict in its power management that a simple
request to have Pay run in the background at night for 20 seconds it is
required to completely turn off powermanagement for the app. An overkill
solution, but that is how it works now.

A nice history:
https://medium.com/its-tinkoff/android-background-restrictions-
b63e73fe508

Side-effect is that if the user granted the turning off of power
management we now have to add code to do it inside the app.
This commit checks when the app is hidden (screen turned off, other app
became front etc) then we wait for a timeout and then terminate
ourselves in order to avoid using more CPU.
2025-03-07 14:37:17 +01:00
tomFlowee d5a632170f Drop the foreground service requirements 2025-03-06 21:17:10 +01:00
tomFlowee 1a71310740 Close popup on client lock.
When the user has had the screen locked long enough to make the app
lock, we just close the popup.

The unlock screen actually appears under popups (that's the concept of a
popup..) so this solves a leakage of data.
2025-03-06 16:54:49 +01:00
tomFlowee 1e0b79ddc4 Cleanup 2025-03-06 15:47:36 +01:00
tomFlowee 3381e9910c Lower the notification level of blocks being mined 2025-03-06 15:46:19 +01:00
tomFlowee 079f263296 Add a watchdog timer on the Periodic setup.
Avoid the process to run more than 120 seconds, which should be plenty.
If it is not, it will continue next iteration.
2025-03-04 22:43:21 +01:00
tomFlowee 7f5a047f1a Import translations from crowdin 2025-03-04 14:39:28 +01:00
tomFlowee 36f1c79889 Translation fixes 2025-03-04 14:21:18 +01:00
tomFlowee d9991cace6 Prepare modules for i18n 2025-03-04 12:43:37 +01:00
tomFlowee ad415ece23 Make popup not have a background
Just the loader has a background, avoiding weird placement issues
due to the frankly bad defaults and insets etc of the popup component
2025-03-04 11:40:46 +01:00
tomFlowee e59eda5050 Seems QtCore doesn't (any longer) requires this 2025-03-04 11:23:50 +01:00
tomFlowee 44bdb8e8b3 Small fixes 2025-03-04 11:14:54 +01:00
tomFlowee 66f1812cd4 new version 2025-03-03 21:50:43 +01:00
tomFlowee 4dc0110280 Make checkbox not stick out 2025-03-03 21:48:36 +01:00
tomFlowee c3a993f45c Add request for block notifications.
This is the only useful notification type we have today,
but at least it allows the user to explicitly go and request
notifications from the Android OS.
2025-03-03 21:35:00 +01:00
tomFlowee 9ead6eea07 Improve UX
Use the new TextButton feature better for current setting
and make clear in the sub text which wallet this is for.

On the send tab the InstaPayConfigButton is directly next to the
default wallet, as such it may be assumed that the insta pay
text applied to the name mentioned there.
This lists the wallet here in order to make things clear and
now lists the actual limit on the right side for consistency.
2025-03-03 20:04:20 +01:00
tomFlowee 2d511fbe86 Tweak 'light' color and usage
This swaps the colors on the AccountHistory and ExploreModules
rounded rects in order to make the background universally the same
everywhere.
To make it work the 'light' color on the light theme had to remove
some of its contrast to the base color in order to not remove
contrast to the text.
2025-03-03 19:38:28 +01:00
tomFlowee 05781e42b6 fix typo 2025-03-03 19:04:19 +01:00
tomFlowee 810a622e04 Add slider styling 2025-03-03 17:38:59 +01:00
tomFlowee 3ab63d6dc5 strings; Be much less technical 2025-03-03 17:01:29 +01:00
tomFlowee 31e6dea3fd Fix scanning an unsupported QR causing a problem 2025-03-03 16:18:15 +01:00
tomFlowee eb7082e127 Fix unlock app keyboard focus
This allows us to detect the android BACK button and act
appropriately
2025-03-03 15:55:44 +01:00
tomFlowee 2524a8e675 Add 'confetti' on detecting a receive. 2025-03-03 15:32:45 +01:00
tomFlowee 61b85f3a4d Close virtual keyboard on receive 2025-03-03 14:16:40 +01:00
tomFlowee 40b3c58de6 Make the unlock screen move to the price input
This makes the flow a bit smoother for the people that want
to use this as a point of sale system.
2025-03-03 14:10:34 +01:00
tomFlowee 52642a4b3e Show if it is enabled or not 2025-03-03 14:10:09 +01:00
tomFlowee 7da8bac289 Rename qml file 2025-03-03 13:58:05 +01:00
tomFlowee 7265cdc11e Make checkbox look less bloated
Additionally, make the touch area bigger.
2025-03-03 13:54:21 +01:00
tomFlowee 040ae97e8f Improve readability of coin selector 2025-03-03 13:47:34 +01:00
tomFlowee 3991869dfa Stop the service afterwards 2025-03-03 13:42:36 +01:00
tomFlowee 16ef0e568a Move package name 2025-03-02 20:28:04 +01:00
tomFlowee a85f5e7894 Add background sync for Android
On Android this enables the application to run just a simple
quick sync and then exit the app on regular intervals.
The main benefit is that when the user doesn't run the app very
often they will avoid having a long sync time.
2025-03-02 19:57:02 +01:00
tomFlowee cf9c3f7191 Move the explore down
Since we have an explore tab, we can make this one be much less
visible.
2025-03-02 19:57:02 +01:00
tomFlowee ef2309fbe8 Allow TextButton to have a 'value' shown. 2025-03-02 19:57:02 +01:00
tomFlowee 7f28284b35 Remove unneeded include
This was added by default by the Qt tools, making me ship
4MB too much without noticing for too long.
Stop shipping androidx classes.
2025-03-02 19:57:02 +01:00
tomFlowee 9c35049372 Start new app 'pay-headless'
this is a command line only application that syncs the wallets
and then exits.
2025-03-02 19:57:02 +01:00
tomFlowee 21eeab2f98 Add offline checking for Android.
Add logic to notice that the device is offline and notify the
user of this fact on screen.
Repeat checking so we can notify the user that network is back.

This shows in the UI (of the mobile form factor) that the device
is offline and we avoid starting the p2p layer until network
is detected to be there again.
2025-03-02 19:57:02 +01:00
tomFlowee 0e6dd39d2e Move platform specific code to platform files.
This removes the various ifdef based differences which are platform
specific and instead moves the code to a file that will only be
compiled for that target platform.

We also remove the backwards compatible 'darktheme-from-system' code
which is by now no longer needed.
2025-02-26 17:45:02 +01:00
tomFlowee 3d821d4be4 Add NewIndicator on socialFeedModule 2025-02-25 19:38:39 +01:00
tomFlowee f12b6f31f2 Update the url 2025-02-25 18:29:55 +01:00
tomFlowee 709f5ec7ed Make sure that the TextButton has enough space.
We should not require the user to put it in a layout with spacing, that
will just create inconsistencies.
Instead make sure that the button itself is tall enough for easy aiming
on small screens.
2025-02-25 18:29:44 +01:00
tomFlowee 7b693e9a60 Add priority to modules for display purposes. 2025-02-25 17:04:13 +01:00
tomFlowee 6f7388ccc3 Clear out the inconsistencies in the background colors 2025-02-24 23:19:54 +01:00
tomFlowee d9e6374ef6 new version 2025-02-24 22:28:16 +01:00