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

@@ -479,6 +479,10 @@ public class ApplicationEx extends Application
String key = prefs.getString("deepl", null);
editor.putString("deepl_key", key).remove("deepl");
}
} else if (version < 1630) {
boolean experiments = prefs.getBoolean("experiments", false);
if (experiments)
editor.putBoolean("deepl_enabled", true);
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O && !BuildConfig.DEBUG)