mirror of
https://github.com/M66B/FairEmail.git
synced 2026-05-19 05:29:50 +02:00
Experiment
This commit is contained in:
@@ -70,6 +70,8 @@ import android.text.TextUtils;
|
||||
import android.view.Display;
|
||||
import android.view.ViewConfiguration;
|
||||
import android.view.WindowManager;
|
||||
import android.view.textservice.SpellCheckerInfo;
|
||||
import android.view.textservice.TextServicesManager;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.RequiresApi;
|
||||
@@ -317,6 +319,17 @@ public class DebugHelper {
|
||||
sb.append(String.format("System: %s\r\n", ll.get(i)));
|
||||
}
|
||||
|
||||
if (BuildConfig.DEBUG && Build.VERSION.SDK_INT >= Build.VERSION_CODES.S)
|
||||
try {
|
||||
TextServicesManager tsm = (TextServicesManager) context.getSystemService(Context.TEXT_SERVICES_MANAGER_SERVICE);
|
||||
SpellCheckerInfo sci = (tsm == null ? null : tsm.getCurrentSpellCheckerInfo());
|
||||
if (sci != null)
|
||||
for (int i = 0; i < sci.getSubtypeCount(); i++)
|
||||
sb.append(String.format("Spell: %s\r\n", sci.getSubtypeAt(i).getLocale()));
|
||||
} catch (Throwable ex) {
|
||||
sb.append(ex).append("\r\n");
|
||||
}
|
||||
|
||||
sb.append("\r\n");
|
||||
|
||||
String osVersion = null;
|
||||
|
||||
Reference in New Issue
Block a user