|
@@ -7,6 +7,7 @@ import android.content.ComponentName
|
7
|
7
|
import android.content.Context
|
8
|
8
|
import android.content.pm.PackageManager
|
9
|
9
|
import android.os.Build
|
|
10
|
+import android.util.Log
|
10
|
11
|
import androidx.core.content.ContextCompat
|
11
|
12
|
import androidx.multidex.MultiDex
|
12
|
13
|
import androidx.multidex.MultiDexApplication
|
|
@@ -787,6 +788,18 @@ class ManageApplication : MultiDexApplication() {
|
787
|
788
|
}
|
788
|
789
|
}
|
789
|
790
|
|
|
791
|
+ //设置默认输入法
|
|
792
|
+ fun setDefaultInputMethod(pkg: String){
|
|
793
|
+ if (ModelNameUtils.IS_LianxX505f() || ModelNameUtils.IS_LianxX6e6f()){
|
|
794
|
+ try {
|
|
795
|
+ var defaultInputMethod = csdkManager?.setDefaultInputMethod(pkg)
|
|
796
|
+ Log.d("设置输入法","设置结果"+defaultInputMethod)
|
|
797
|
+ }catch (e:Exception){
|
|
798
|
+
|
|
799
|
+ }
|
|
800
|
+ }
|
|
801
|
+ }
|
|
802
|
+
|
790
|
803
|
}
|
791
|
804
|
|
792
|
805
|
override fun onCreate() {
|