Skip to content

Commit 5450586

Browse files
committed
add error message for gaming mode not being purchased
1 parent 238298d commit 5450586

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

base/src/main/java/io/github/sds100/keymapper/base/utils/ErrorUtils.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,10 +455,16 @@ fun KMError.getFullMessage(resourceProvider: ResourceProvider): String {
455455
resourceProvider.getString(
456456
R.string.purchasing_error_assistant_not_purchased_home_screen,
457457
)
458+
458459
ProductId.FLOATING_BUTTONS ->
459460
resourceProvider.getString(
460461
R.string.purchasing_error_floating_buttons_not_purchased_home_screen,
461462
)
463+
464+
ProductId.GAMING_MODE ->
465+
resourceProvider.getString(
466+
R.string.purchasing_error_gaming_mode_not_purchased_home_screen,
467+
)
462468
}
463469

464470
PurchasingError.PurchasingNotImplemented ->

base/src/main/res/values/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1383,6 +1383,7 @@
13831383
<string name="purchasing_contact_developer_button">Contact developer</string>
13841384
<string name="purchasing_error_assistant_not_purchased_home_screen">You must purchase the side key trigger feature! Tap on the key map and then purchase it by clicking on \'Advanced triggers\'.</string>
13851385
<string name="purchasing_error_floating_buttons_not_purchased_home_screen">You must purchase the floating buttons feature! Tap on the key map and then purchase it by clicking on \'Advanced triggers\'.</string>
1386+
<string name="purchasing_error_gaming_mode_not_purchased_home_screen">You must purchase the gaming mode feature!</string>
13861387
<string name="purchasing_contact_email" translatable="false">contact@keymapper.club</string>
13871388
<string name="customer_email_subject" translatable="false">Key Mapper Pro query</string>
13881389
<string name="customer_email_body" translatable="false">Please fill the following information so I can help you.\n\n1. Device model:\n2. Android version:\n3. Key maps (make a back up in the home screen menu):\n4. Screenshot of Key Mapper home screen:\n5. Describe the problem you are having:</string>

0 commit comments

Comments
 (0)