|
|
@@ -2,6 +2,7 @@ package com.bonait.bnframework.modules.welcome.activity; |
|
|
|
|
|
|
|
import android.Manifest; |
|
|
|
import android.content.Intent; |
|
|
|
import android.os.Build; |
|
|
|
import android.os.Bundle; |
|
|
|
import android.os.Handler; |
|
|
|
|
|
|
@@ -14,6 +15,7 @@ import android.view.KeyEvent; |
|
|
|
import android.view.MotionEvent; |
|
|
|
|
|
|
|
import com.apkfuns.logutils.LogUtils; |
|
|
|
import com.bonait.bnframework.BuildConfig; |
|
|
|
import com.bonait.bnframework.MainApplication; |
|
|
|
import com.bonait.bnframework.R; |
|
|
|
import com.bonait.bnframework.business.MainInit; |
|
|
@@ -69,6 +71,12 @@ public class WelcomeActivity extends BaseActivity { |
|
|
|
if(ConfigName.getInstance().isPhoneVersion){ |
|
|
|
ConfigName.getInstance().scale = (double) miDisplayWidth /800; |
|
|
|
} |
|
|
|
int sdkInt = Build.VERSION.SDK_INT; |
|
|
|
if (sdkInt >= Build.VERSION_CODES.O) { |
|
|
|
// 针对Android 8.0(API级别26)及以上版本执行的代码 |
|
|
|
ConfigName.getInstance().isPhoneVersion = true; |
|
|
|
} |
|
|
|
LogUtils.d("ConfigName.getInstance().isPhoneVersion="+ConfigName.getInstance().isPhoneVersion); |
|
|
|
initScaleViewDefaultValue(); |
|
|
|
initWelcome(); |
|
|
|
} |
|
|
|