mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 03:46:00 +01:00
Added option for DeepL integration
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user