Commit 2ff828b3 authored by mengcuiguang2's avatar mengcuiguang2

代码优化

parent 88657f98
......@@ -10,8 +10,8 @@ android {
applicationId "com.duben.happyplaylet"
minSdkVersion rootProject.ext.androidMinSdkVersion
targetSdkVersion rootProject.ext.androidTargetSdkVersion
versionCode 3
versionName "1.0.2"
versionCode 30
versionName "3.0.0"
flavorDimensions "default"
// dex突破65535的限制
......
......@@ -558,12 +558,12 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener,
}
when (v.id) {
R.id.iv_dialog_vip_quit -> {
// if (isGuide) {
// readyGoThenKill(MainActivity::class.java)
// } else {
// finish()
// }
payYesDialog!!.dismiss()
if (isGuide) {
readyGoThenKill(MainActivity::class.java)
} else {
finish()
}
// payYesDialog!!.dismiss()
}
R.id.tv_dialog_vip_next -> {
cbVipAgreement.isChecked = true
......
......@@ -22,13 +22,23 @@ import java.lang.reflect.Method;
public class UIUtils {
public static int getScreenWidth(Context context) {
try{
DisplayMetrics dm = context.getResources().getDisplayMetrics();
return dm.widthPixels;
}catch (Exception e){
return 0;
}
}
public static int getScreenHeight(Context context) {
try{
DisplayMetrics dm = context.getResources().getDisplayMetrics();
return dm.heightPixels;
}catch (Exception e){
return 0;
}
}
......
......@@ -21,9 +21,8 @@ android.nonTransitiveRClass=true
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
DEBUG_URL="https://test.mints-id.com/camera-api/"
#DEBUG_URL="http://cui.mints-id.com/"
#DEBUG_URL="https://api.mints-tech.cn/camera-api/"
DEBUG_URL="https://api.mints-tech.cn/camera-api/"
RELEASE_URL="https://api.mints-tech.cn/camera-api/"
RELEASE_KEY_PASSWORD=mintshappyplaylet
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment