Added option for DeepL integration

This commit is contained in:
M66B
2021-06-28 10:10:44 +02:00
parent 2333cca3a7
commit 13f809e3c8
5 changed files with 64 additions and 7 deletions

View File

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