mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-27 19:35:10 +01:00
DeepL: experimental
This commit is contained in:
@@ -155,6 +155,12 @@ 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);
|
||||
}
|
||||
|
||||
public static boolean canTranslate(Context context) {
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
String deepl_key = prefs.getString("deepl_key", null);
|
||||
|
||||
Reference in New Issue
Block a user