From c9bf1474e30faca163c7ade6fc7be6feb553de20 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Thu, 4 Jul 2019 19:35:03 +0200 Subject: [PATCH] support status code 451 in quicksy registration --- .../java/eu/siacs/conversations/ui/util/ApiDialogHelper.java | 3 +++ src/quicksy/res/values/strings.xml | 1 + 2 files changed, 4 insertions(+) diff --git a/src/quicksy/java/eu/siacs/conversations/ui/util/ApiDialogHelper.java b/src/quicksy/java/eu/siacs/conversations/ui/util/ApiDialogHelper.java index faab325d8..d1f987bff 100644 --- a/src/quicksy/java/eu/siacs/conversations/ui/util/ApiDialogHelper.java +++ b/src/quicksy/java/eu/siacs/conversations/ui/util/ApiDialogHelper.java @@ -42,6 +42,9 @@ public class ApiDialogHelper { case 409: res = R.string.logged_in_with_another_device; break; + case 451: + res = R.string.not_available_in_your_country; + break; case 500: res = R.string.something_went_wrong_processing_your_request; break; diff --git a/src/quicksy/res/values/strings.xml b/src/quicksy/res/values/strings.xml index 3792c2ada..e9cfa3cae 100644 --- a/src/quicksy/res/values/strings.xml +++ b/src/quicksy/res/values/strings.xml @@ -19,4 +19,5 @@ Quicksy needs access to the microphone This notification category is used to display a permanent notification indicating that Quicksy is running. Quicksy profile picture + Quicksy is not available in your country.