Skip to content

Commit

Permalink
#1274 feat: instruct the user to buy the advanced trigger on the home…
Browse files Browse the repository at this point in the history
… screen if the assistant trigger is not purchased
  • Loading branch information
sds100 committed Nov 12, 2024
1 parent 028a8cd commit 38bde34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ fun Error.getFullMessage(resourceProvider: ResourceProvider): String = when (thi
Error.DeviceAssistantNotSet -> resourceProvider.getString(R.string.trigger_error_assistant_activity_not_chosen_short)

is Error.ProductNotPurchased -> when (this.product) {
ProductId.ASSISTANT_TRIGGER -> resourceProvider.getString(R.string.purchasing_error_assistant_not_purchased)
ProductId.ASSISTANT_TRIGGER -> resourceProvider.getString(R.string.purchasing_error_assistant_not_purchased_home_screen)
}

Error.PurchasingNotImplemented -> resourceProvider.getString(R.string.purchasing_error_not_implemented)
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1402,7 +1402,7 @@
<string name="purchasing_error_dialog_title">Something went wrong 😕</string>
<string name="purchasing_error_dialog_button_retry">Retry</string>
<string name="purchasing_contact_developer_button">Contact developer</string>
<string name="purchasing_error_assistant_not_purchased">You must purchase the assistant trigger feature!</string>
<string name="purchasing_error_assistant_not_purchased_home_screen">You must purchase the assistant trigger feature! Tap on the key map and then purchase it by clicking on \'Advanced triggers\'.</string>
<string name="purchasing_contact_email" translatable="false">[email protected]</string>
<string name="customer_email_subject" translatable="false">Key Mapper Pro query</string>
<string name="customer_email_body" translatable="false">Please describe the problem you are having here.</string>
Expand Down

0 comments on commit 38bde34

Please sign in to comment.