Skip to content

Commit

Permalink
show when sidekick is connected
Browse files Browse the repository at this point in the history
  • Loading branch information
m2049r committed Sep 15, 2024
1 parent ac9e24e commit 2d2a7d2
Show file tree
Hide file tree
Showing 28 changed files with 112 additions and 17 deletions.
8 changes: 4 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ android {
ndkVersion '17.2.4988734'
defaultConfig {
applicationId "com.m2049r.xmrwallet"
buildToolsVersion = '34.0.0'
compileSdk 34
buildToolsVersion = '35.0.0'
compileSdk 35
minSdkVersion 21
targetSdkVersion 35
versionCode 4005
versionName "4.0.5 'Sidekick'"
versionCode 4006
versionName "4.0.6 'Sidekick'"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
externalNativeBuild {
cmake {
Expand Down
5 changes: 5 additions & 0 deletions app/src/main/java/com/m2049r/xmrwallet/LoginActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -1413,6 +1413,11 @@ public void onDeviceConnected(String connectedDeviceName) {
} catch (ClassCastException ex) {
// ignore it
}
if (connectedDeviceName != null) {
setSubtitle(getString(R.string.sidekick_connected));
} else {
setSubtitle(null);
}
}

@Override
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/res/values-cat/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,9 @@

<string name="setting_lock">Lock Wallet in Background</string>

<string name="menu_bluetooth">Connect Sidekick</string>
<string name="bluetooth_select_label">Select Sidekick device</string>

<string name="bluetooth_permissions">Bluetooth permissions are required to connect your Sidekick Wallet!</string>
<string name="bluetooth_permissions_ok">OK</string>
<string name="bluetooth_permissions_settings">App Settings</string>
Expand All @@ -460,4 +463,5 @@
to turn on flight mode and restart the app with only Bluetooth enabled!</string>
<string name="open_wallet_sidekick_missing">Please connect Sidekick device</string>
<string name="fab_restore_sidekick">Restore from Sidekick</string>
<string name="sidekick_connected">Sidekick Connected</string>
</resources>
4 changes: 4 additions & 0 deletions app/src/main/res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,9 @@

<string name="setting_lock">Lock Wallet in Background</string>

<string name="menu_bluetooth">Connect Sidekick</string>
<string name="bluetooth_select_label">Select Sidekick device</string>

<string name="bluetooth_permissions">Bluetooth permissions are required to connect your Sidekick Wallet!</string>
<string name="bluetooth_permissions_ok">OK</string>
<string name="bluetooth_permissions_settings">App Settings</string>
Expand All @@ -461,4 +464,5 @@
to turn on flight mode and restart the app with only Bluetooth enabled!</string>
<string name="open_wallet_sidekick_missing">Please connect Sidekick device</string>
<string name="fab_restore_sidekick">Restore from Sidekick</string>
<string name="sidekick_connected">Sidekick Connected</string>
</resources>
4 changes: 4 additions & 0 deletions app/src/main/res/values-el/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,9 @@

<string name="setting_lock">Lock Wallet in Background</string>

<string name="menu_bluetooth">Connect Sidekick</string>
<string name="bluetooth_select_label">Select Sidekick device</string>

<string name="bluetooth_permissions">Bluetooth permissions are required to connect your Sidekick Wallet!</string>
<string name="bluetooth_permissions_ok">OK</string>
<string name="bluetooth_permissions_settings">App Settings</string>
Expand All @@ -462,4 +465,5 @@
to turn on flight mode and restart the app with only Bluetooth enabled!</string>
<string name="open_wallet_sidekick_missing">Please connect Sidekick device</string>
<string name="fab_restore_sidekick">Restore from Sidekick</string>
<string name="sidekick_connected">Sidekick Connected</string>
</resources>
4 changes: 4 additions & 0 deletions app/src/main/res/values-eo/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,9 @@

<string name="setting_lock">Lock Wallet in Background</string>

<string name="menu_bluetooth">Connect Sidekick</string>
<string name="bluetooth_select_label">Select Sidekick device</string>

<string name="bluetooth_permissions">Bluetooth permissions are required to connect your Sidekick Wallet!</string>
<string name="bluetooth_permissions_ok">OK</string>
<string name="bluetooth_permissions_settings">App Settings</string>
Expand All @@ -460,4 +463,5 @@
to turn on flight mode and restart the app with only Bluetooth enabled!</string>
<string name="open_wallet_sidekick_missing">Please connect Sidekick device</string>
<string name="fab_restore_sidekick">Restore from Sidekick</string>
<string name="sidekick_connected">Sidekick Connected</string>
</resources>
4 changes: 4 additions & 0 deletions app/src/main/res/values-es/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,9 @@

<string name="setting_lock">Lock Wallet in Background</string>

<string name="menu_bluetooth">Connect Sidekick</string>
<string name="bluetooth_select_label">Select Sidekick device</string>

<string name="bluetooth_permissions">Bluetooth permissions are required to connect your Sidekick Wallet!</string>
<string name="bluetooth_permissions_ok">OK</string>
<string name="bluetooth_permissions_settings">App Settings</string>
Expand All @@ -457,4 +460,5 @@
to turn on flight mode and restart the app with only Bluetooth enabled!</string>
<string name="open_wallet_sidekick_missing">Please connect Sidekick device</string>
<string name="fab_restore_sidekick">Restore from Sidekick</string>
<string name="sidekick_connected">Sidekick Connected</string>
</resources>
4 changes: 4 additions & 0 deletions app/src/main/res/values-et/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,9 @@

<string name="setting_lock">Lock Wallet in Background</string>

<string name="menu_bluetooth">Connect Sidekick</string>
<string name="bluetooth_select_label">Select Sidekick device</string>

<string name="bluetooth_permissions">Bluetooth permissions are required to connect your Sidekick Wallet!</string>
<string name="bluetooth_permissions_ok">OK</string>
<string name="bluetooth_permissions_settings">App Settings</string>
Expand All @@ -460,4 +463,5 @@
to turn on flight mode and restart the app with only Bluetooth enabled!</string>
<string name="open_wallet_sidekick_missing">Please connect Sidekick device</string>
<string name="fab_restore_sidekick">Restore from Sidekick</string>
<string name="sidekick_connected">Sidekick Connected</string>
</resources>
4 changes: 4 additions & 0 deletions app/src/main/res/values-fa/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,9 @@

<string name="setting_lock">Lock Wallet in Background</string>

<string name="menu_bluetooth">Connect Sidekick</string>
<string name="bluetooth_select_label">Select Sidekick device</string>

<string name="bluetooth_permissions">Bluetooth permissions are required to connect your Sidekick Wallet!</string>
<string name="bluetooth_permissions_ok">OK</string>
<string name="bluetooth_permissions_settings">App Settings</string>
Expand All @@ -700,4 +703,5 @@
to turn on flight mode and restart the app with only Bluetooth enabled!</string>
<string name="open_wallet_sidekick_missing">Please connect Sidekick device</string>
<string name="fab_restore_sidekick">Restore from Sidekick</string>
<string name="sidekick_connected">Sidekick Connected</string>
</resources>
4 changes: 4 additions & 0 deletions app/src/main/res/values-fr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,9 @@

<string name="setting_lock">Lock Wallet in Background</string>

<string name="menu_bluetooth">Connect Sidekick</string>
<string name="bluetooth_select_label">Select Sidekick device</string>

<string name="bluetooth_permissions">Bluetooth permissions are required to connect your Sidekick Wallet!</string>
<string name="bluetooth_permissions_ok">OK</string>
<string name="bluetooth_permissions_settings">App Settings</string>
Expand All @@ -473,4 +476,5 @@
to turn on flight mode and restart the app with only Bluetooth enabled!</string>
<string name="open_wallet_sidekick_missing">Please connect Sidekick device</string>
<string name="fab_restore_sidekick">Restore from Sidekick</string>
<string name="sidekick_connected">Sidekick Connected</string>
</resources>
4 changes: 4 additions & 0 deletions app/src/main/res/values-he/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,9 @@

<string name="setting_lock">Lock Wallet in Background</string>

<string name="menu_bluetooth">Connect Sidekick</string>
<string name="bluetooth_select_label">Select Sidekick device</string>

<string name="bluetooth_permissions">Bluetooth permissions are required to connect your Sidekick Wallet!</string>
<string name="bluetooth_permissions_ok">OK</string>
<string name="bluetooth_permissions_settings">App Settings</string>
Expand All @@ -460,4 +463,5 @@
to turn on flight mode and restart the app with only Bluetooth enabled!</string>
<string name="open_wallet_sidekick_missing">Please connect Sidekick device</string>
<string name="fab_restore_sidekick">Restore from Sidekick</string>
<string name="sidekick_connected">Sidekick Connected</string>
</resources>
4 changes: 4 additions & 0 deletions app/src/main/res/values-hu/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,9 @@

<string name="setting_lock">Lock Wallet in Background</string>

<string name="menu_bluetooth">Connect Sidekick</string>
<string name="bluetooth_select_label">Select Sidekick device</string>

<string name="bluetooth_permissions">Bluetooth permissions are required to connect your Sidekick Wallet!</string>
<string name="bluetooth_permissions_ok">OK</string>
<string name="bluetooth_permissions_settings">App Settings</string>
Expand All @@ -464,4 +467,5 @@
to turn on flight mode and restart the app with only Bluetooth enabled!</string>
<string name="open_wallet_sidekick_missing">Please connect Sidekick device</string>
<string name="fab_restore_sidekick">Restore from Sidekick</string>
<string name="sidekick_connected">Sidekick Connected</string>
</resources>
4 changes: 4 additions & 0 deletions app/src/main/res/values-it/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,9 @@

<string name="setting_lock">Lock Wallet in Background</string>

<string name="menu_bluetooth">Connect Sidekick</string>
<string name="bluetooth_select_label">Select Sidekick device</string>

<string name="bluetooth_permissions">Bluetooth permissions are required to connect your Sidekick Wallet!</string>
<string name="bluetooth_permissions_ok">OK</string>
<string name="bluetooth_permissions_settings">App Settings</string>
Expand All @@ -465,4 +468,5 @@
to turn on flight mode and restart the app with only Bluetooth enabled!</string>
<string name="open_wallet_sidekick_missing">Please connect Sidekick device</string>
<string name="fab_restore_sidekick">Restore from Sidekick</string>
<string name="sidekick_connected">Sidekick Connected</string>
</resources>
4 changes: 4 additions & 0 deletions app/src/main/res/values-ja/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,9 @@

<string name="setting_lock">Lock Wallet in Background</string>

<string name="menu_bluetooth">Connect Sidekick</string>
<string name="bluetooth_select_label">Select Sidekick device</string>

<string name="bluetooth_permissions">Bluetooth permissions are required to connect your Sidekick Wallet!</string>
<string name="bluetooth_permissions_ok">OK</string>
<string name="bluetooth_permissions_settings">App Settings</string>
Expand All @@ -465,4 +468,5 @@
to turn on flight mode and restart the app with only Bluetooth enabled!</string>
<string name="open_wallet_sidekick_missing">Please connect Sidekick device</string>
<string name="fab_restore_sidekick">Restore from Sidekick</string>
<string name="sidekick_connected">Sidekick Connected</string>
</resources>
4 changes: 4 additions & 0 deletions app/src/main/res/values-nb/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,9 @@

<string name="label_apply">APPLY</string>

<string name="menu_bluetooth">Connect Sidekick</string>
<string name="bluetooth_select_label">Select Sidekick device</string>

<string name="setting_lock">Lock Wallet in Background</string>

<string name="bluetooth_permissions">Bluetooth permissions are required to connect your Sidekick Wallet!</string>
Expand All @@ -462,4 +465,5 @@
to turn on flight mode and restart the app with only Bluetooth enabled!</string>
<string name="open_wallet_sidekick_missing">Please connect Sidekick device</string>
<string name="fab_restore_sidekick">Restore from Sidekick</string>
<string name="sidekick_connected">Sidekick Connected</string>
</resources>
4 changes: 4 additions & 0 deletions app/src/main/res/values-nl/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,9 @@

<string name="setting_lock">Lock Wallet in Background</string>

<string name="menu_bluetooth">Connect Sidekick</string>
<string name="bluetooth_select_label">Select Sidekick device</string>

<string name="bluetooth_permissions">Bluetooth permissions are required to connect your Sidekick Wallet!</string>
<string name="bluetooth_permissions_ok">OK</string>
<string name="bluetooth_permissions_settings">App Settings</string>
Expand All @@ -462,4 +465,5 @@
to turn on flight mode and restart the app with only Bluetooth enabled!</string>
<string name="open_wallet_sidekick_missing">Please connect Sidekick device</string>
<string name="fab_restore_sidekick">Restore from Sidekick</string>
<string name="sidekick_connected">Sidekick Connected</string>
</resources>
4 changes: 4 additions & 0 deletions app/src/main/res/values-pt-rBR/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,9 @@ aqui.</string>

<string name="setting_lock">Lock Wallet in Background</string>

<string name="menu_bluetooth">Connect Sidekick</string>
<string name="bluetooth_select_label">Select Sidekick device</string>

<string name="bluetooth_permissions">Bluetooth permissions are required to connect your Sidekick Wallet!</string>
<string name="bluetooth_permissions_ok">OK</string>
<string name="bluetooth_permissions_settings">App Settings</string>
Expand All @@ -455,4 +458,5 @@ aqui.</string>
to turn on flight mode and restart the app with only Bluetooth enabled!</string>
<string name="open_wallet_sidekick_missing">Please connect Sidekick device</string>
<string name="fab_restore_sidekick">Restore from Sidekick</string>
<string name="sidekick_connected">Sidekick Connected</string>
</resources>
4 changes: 4 additions & 0 deletions app/src/main/res/values-pt/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,9 @@

<string name="setting_lock">Lock Wallet in Background</string>

<string name="menu_bluetooth">Connect Sidekick</string>
<string name="bluetooth_select_label">Select Sidekick device</string>

<string name="bluetooth_permissions">Bluetooth permissions are required to connect your Sidekick Wallet!</string>
<string name="bluetooth_permissions_ok">OK</string>
<string name="bluetooth_permissions_settings">App Settings</string>
Expand All @@ -466,4 +469,5 @@
to turn on flight mode and restart the app with only Bluetooth enabled!</string>
<string name="open_wallet_sidekick_missing">Please connect Sidekick device</string>
<string name="fab_restore_sidekick">Restore from Sidekick</string>
<string name="sidekick_connected">Sidekick Connected</string>
</resources>
4 changes: 4 additions & 0 deletions app/src/main/res/values-ro/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,9 @@

<string name="setting_lock">Lock Wallet in Background</string>

<string name="menu_bluetooth">Connect Sidekick</string>
<string name="bluetooth_select_label">Select Sidekick device</string>

<string name="bluetooth_permissions">Bluetooth permissions are required to connect your Sidekick Wallet!</string>
<string name="bluetooth_permissions_ok">OK</string>
<string name="bluetooth_permissions_settings">App Settings</string>
Expand All @@ -462,4 +465,5 @@
to turn on flight mode and restart the app with only Bluetooth enabled!</string>
<string name="open_wallet_sidekick_missing">Please connect Sidekick device</string>
<string name="fab_restore_sidekick">Restore from Sidekick</string>
<string name="sidekick_connected">Sidekick Connected</string>
</resources>
4 changes: 4 additions & 0 deletions app/src/main/res/values-ru/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,9 @@

<string name="setting_lock">Lock Wallet in Background</string>

<string name="menu_bluetooth">Connect Sidekick</string>
<string name="bluetooth_select_label">Select Sidekick device</string>

<string name="bluetooth_permissions">Bluetooth permissions are required to connect your Sidekick Wallet!</string>
<string name="bluetooth_permissions_ok">OK</string>
<string name="bluetooth_permissions_settings">App Settings</string>
Expand All @@ -466,4 +469,5 @@
to turn on flight mode and restart the app with only Bluetooth enabled!</string>
<string name="open_wallet_sidekick_missing">Please connect Sidekick device</string>
<string name="fab_restore_sidekick">Restore from Sidekick</string>
<string name="sidekick_connected">Sidekick Connected</string>
</resources>
4 changes: 4 additions & 0 deletions app/src/main/res/values-sk/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,9 @@

<string name="setting_lock">Lock Wallet in Background</string>

<string name="menu_bluetooth">Connect Sidekick</string>
<string name="bluetooth_select_label">Select Sidekick device</string>

<string name="bluetooth_permissions">Bluetooth permissions are required to connect your Sidekick Wallet!</string>
<string name="bluetooth_permissions_ok">OK</string>
<string name="bluetooth_permissions_settings">App Settings</string>
Expand All @@ -463,4 +466,5 @@
to turn on flight mode and restart the app with only Bluetooth enabled!</string>
<string name="open_wallet_sidekick_missing">Please connect Sidekick device</string>
<string name="fab_restore_sidekick">Restore from Sidekick</string>
<string name="sidekick_connected">Sidekick Connected</string>
</resources>
4 changes: 4 additions & 0 deletions app/src/main/res/values-sr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,9 @@

<string name="setting_lock">Lock Wallet in Background</string>

<string name="menu_bluetooth">Connect Sidekick</string>
<string name="bluetooth_select_label">Select Sidekick device</string>

<string name="bluetooth_permissions">Bluetooth permissions are required to connect your Sidekick Wallet!</string>
<string name="bluetooth_permissions_ok">OK</string>
<string name="bluetooth_permissions_settings">App Settings</string>
Expand All @@ -461,4 +464,5 @@
to turn on flight mode and restart the app with only Bluetooth enabled!</string>
<string name="open_wallet_sidekick_missing">Please connect Sidekick device</string>
<string name="fab_restore_sidekick">Restore from Sidekick</string>
<string name="sidekick_connected">Sidekick Connected</string>
</resources>
4 changes: 4 additions & 0 deletions app/src/main/res/values-sv/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,9 @@

<string name="setting_lock">Lock Wallet in Background</string>

<string name="menu_bluetooth">Connect Sidekick</string>
<string name="bluetooth_select_label">Select Sidekick device</string>

<string name="bluetooth_permissions">Bluetooth permissions are required to connect your Sidekick Wallet!</string>
<string name="bluetooth_permissions_ok">OK</string>
<string name="bluetooth_permissions_settings">App Settings</string>
Expand All @@ -454,4 +457,5 @@
to turn on flight mode and restart the app with only Bluetooth enabled!</string>
<string name="open_wallet_sidekick_missing">Please connect Sidekick device</string>
<string name="fab_restore_sidekick">Restore from Sidekick</string>
<string name="sidekick_connected">Sidekick Connected</string>
</resources>
4 changes: 4 additions & 0 deletions app/src/main/res/values-ta/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,9 @@

<string name="setting_lock">Lock Wallet in Background</string>

<string name="menu_bluetooth">Connect Sidekick</string>
<string name="bluetooth_select_label">Select Sidekick device</string>

<string name="bluetooth_permissions">Bluetooth permissions are required to connect your Sidekick Wallet!</string>
<string name="bluetooth_permissions_ok">OK</string>
<string name="bluetooth_permissions_settings">App Settings</string>
Expand All @@ -460,4 +463,5 @@
to turn on flight mode and restart the app with only Bluetooth enabled!</string>
<string name="open_wallet_sidekick_missing">Please connect Sidekick device</string>
<string name="fab_restore_sidekick">Restore from Sidekick</string>
<string name="sidekick_connected">Sidekick Connected</string>
</resources>
4 changes: 4 additions & 0 deletions app/src/main/res/values-uk/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,9 @@

<string name="setting_lock">Lock Wallet in Background</string>

<string name="menu_bluetooth">Connect Sidekick</string>
<string name="bluetooth_select_label">Select Sidekick device</string>

<string name="bluetooth_permissions">Bluetooth permissions are required to connect your Sidekick Wallet!</string>
<string name="bluetooth_permissions_ok">OK</string>
<string name="bluetooth_permissions_settings">App Settings</string>
Expand All @@ -466,4 +469,5 @@
to turn on flight mode and restart the app with only Bluetooth enabled!</string>
<string name="open_wallet_sidekick_missing">Please connect Sidekick device</string>
<string name="fab_restore_sidekick">Restore from Sidekick</string>
<string name="sidekick_connected">Sidekick Connected</string>
</resources>
Loading

0 comments on commit 2d2a7d2

Please sign in to comment.