Enable DeepL for Play store

This commit is contained in:
M66B 2021-06-29 17:12:22 +02:00
parent e26963f9be
commit 10fa9e2710
2 changed files with 2 additions and 4 deletions

3
FAQ.md
View File

@ -3714,10 +3714,9 @@ Unfortunately, it is not possible to hide messages on the email server too.
1. [Copy](https://www.deepl.com/pro-account/plan) the authentication key
1. In the message composer tap on the faint translate button (文A), select *Configure* and paste the key
You might want to read the [privacy policy](https://www.deepl.com/privacy/) of DeepL.
This feature requires an internet connection and is not available in the Play store version.
This feature requires an internet connection.
<br />

View File

@ -73,8 +73,7 @@ public class DeepL {
public static boolean isAvailable(Context context) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
boolean deepl_enabled = prefs.getBoolean("deepl_enabled", false);
return (deepl_enabled && !BuildConfig.PLAY_STORE_RELEASE);
return prefs.getBoolean("deepl_enabled", false);
}
public static boolean canTranslate(Context context) {