Commit Graph

1971 Commits

Author SHA1 Message Date
tomFlowee 539381ce21 Make Camera work the first time again
This removes the Qt middle-man for requesting the camera permissions
and we just code this in our own Java class.

This solves the issue we observed where after the approval of the
user we didn't actually manage to start the camera on some phones.
2025.03.2
2025-03-13 15:55:05 +01:00
tomFlowee 94983670a2 Remove commented out code 2025-03-13 15:55:05 +01:00
tomFlowee 651cf98332 Add a space after the prefix here 2025-03-12 21:04:07 +01:00
tomFlowee f8e678bc9b Specifically specify some currencies 2025-03-12 19:05:06 +01:00
tomFlowee e9fc0c1551 Re-enable the powermanagement feature for Android
This avoids using the Qt intermediate and just directly uses
the Android side, including some extra checks like "screen off".

Rework the various methods in a class.

This makes the various android support features be less hacky and instead
are based on a single class with Qt signals and slots.

We also remove the ping feature for checking online state, since Android
seems to throw a random exception (calling virtual method on null pointer
java.lang.String.size) somewhere in the OS libs when you call it the
second time.

This also implements the AIRPLANE_MODE_CHANGED listener to instantly turn
off internet the moment the user enables flight mode.
2025-03-11 23:25:24 +01:00
tomFlowee 66baeab106 Add check to avoid losing data. 2025-03-11 23:25:24 +01:00
tomFlowee 99adaa0a92 Lets start a new version 2025-03-10 23:46:35 +01:00
tomFlowee 890fb9e54e Move menu button and have a subtle gradient 2025-03-09 23:18:50 +01:00
tomFlowee 0ebc04a054 Add titlebar color setting on Android 2025-03-09 21:42:24 +01:00
tomFlowee fa7418d39d Try adding a rounded corner 2025-03-09 17:30:42 +01:00
tomFlowee 3f6cab3f81 Disable powermanagement feature for now.
The power management turns off the network layer 90 seconds after
the application stops being in the foreground.
At least, that is what it is programmed to do. Unfortunately the
signals we listen to are not reliable across devices and many users
are reporting that this is triggered 90 seconds after start.

For now, turn off the saving feature in order to make sure that
the app operates normally for normal people.
2025.03.1
2025-03-09 17:30:42 +01:00
tomFlowee b5936d3ca0 New version 2025-03-09 16:16:19 +01:00
tomFlowee 44063cde9d Stop linking to Boost::chrono 2025-03-08 17:06:00 +01:00
tomFlowee 8b9cd5282e Update the button text appropriately
When the selected account or currency changes, make the text
update to reflect the actual action of pressing this button.
2025.03.0
2025-03-08 17:06:00 +01:00
tomFlowee c21481c96f Give bottom more space 2025-03-08 11:32:50 +01:00
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