diff --git a/uni_modules/uts-advance/utssdk/app-android/index.uts b/uni_modules/uts-advance/utssdk/app-android/index.uts index 1a76bd41cf6ee5ae06761e19823dd813c162911e..63d4587b885463a85051ecc49153aae1f9c79ec9 100644 --- a/uni_modules/uts-advance/utssdk/app-android/index.uts +++ b/uni_modules/uts-advance/utssdk/app-android/index.uts @@ -111,9 +111,8 @@ class AddUIRunnable implements Runnable { textView.setBackgroundColor(Color.RED) textView.setTag("helloText") textView.setGravity(Gravity.CENTER) - - let decorView = UTSAndroid.getUniActivity()!.window.decorView; - + + let decorView = UTSAndroid.getUniActivity()!.getWindow().getDecorView(); let frameContent = decorView.findViewById(android.R.id.content) let layoutParam = new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT); diff --git a/uni_modules/uts-syntaxcase/utssdk/app-android/kotlinCode.kt b/uni_modules/uts-syntaxcase/utssdk/app-android/kotlinCode.kt index c5063ad8f95137cddcb21130e6433871c5b96755..8f04ab375cf17210dc5c4f45d11d3e0c8a6eed58 100644 --- a/uni_modules/uts-syntaxcase/utssdk/app-android/kotlinCode.kt +++ b/uni_modules/uts-syntaxcase/utssdk/app-android/kotlinCode.kt @@ -2,12 +2,14 @@ package uts.sdk.modules.utsSyntaxcase import android.os.Build import io.dcloud.uts.UTSAndroid - +import io.dcloud.uts.console object NativeCode { fun getPhoneInfo():String{ - return "${Build.BOARD}-${Build.USER}" + val ret = "${Build.BOARD}-${Build.USER}" + console.log("PhoneInfo",ret) + return ret } fun finishActivity(){