中健365-x2手表上线处理

develop
wlh 1 year ago
parent ae107da8c9
commit 9cbe7c9e0c

@ -7,6 +7,7 @@ import com.xty.base.R
import com.xty.base.vm.BaseVm
import com.xty.base.weight.DeleteDialog
import com.xty.base.weight.TipDialog
import com.xty.common.LogUtils
import com.xty.common.MMkvHelper
import com.xty.common.ReflexUtils
import com.xty.common.arouter.ARouterUrl
@ -16,7 +17,7 @@ import com.xty.common.weight.LoadingView
import org.greenrobot.eventbus.EventBus
import pub.devrel.easypermissions.EasyPermissions
abstract class BaseVmAct<V:BaseVm>: IBaseAct() , EasyPermissions.PermissionCallbacks {
abstract class BaseVmAct<V:BaseVm>: IBaseAct() , EasyPermissions.PermissionCallbacks ,EasyPermissions.RationaleCallbacks {
lateinit var mViewModel:V
val loadingView by lazy { LoadingView.Builder(this).setCancelable(true).cteated() }
@ -52,9 +53,20 @@ abstract class BaseVmAct<V:BaseVm>: IBaseAct() , EasyPermissions.PermissionCallb
open fun onSuccess(requestCode: Int) {}
override fun onPermissionsGranted(requestCode: Int, perms: MutableList<String>) {
LogUtils.e("BaseVmAct","onPermissionsGranted${perms.size}")
onSuccess(requestCode)
}
override fun onPermissionsDenied(requestCode: Int, perms: MutableList<String>) {
LogUtils.e("BaseVmAct","onPermissionsDenied${perms.size}")
}
override fun onRationaleAccepted(requestCode: Int) {
LogUtils.e("BaseVmAct","onRationaleAccepted")
}
override fun onRationaleDenied(requestCode: Int) {
LogUtils.e("BaseVmAct","onRationaleDenied")
}
}

@ -19,8 +19,8 @@
tools:background="@mipmap/icon_health_women_1"/>
<ImageView
android:layout_width="@dimen/dp_260"
android:layout_height="@dimen/dp_260"
android:layout_width="@dimen/dp_240"
android:layout_height="@dimen/dp_240"
android:layout_gravity="center"
android:background="@mipmap/bg_health_body"/>

@ -3,6 +3,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:layout_gravity="center"
android:orientation="vertical">
<ImageView
android:layout_width="@dimen/dp_30"

@ -31,7 +31,7 @@ ext {
h5_debug_url : "https://built.zhongjian365.com/",
h5_release_url : "https://built.zhongjian365.com/"
//
/* debug_url : "http://java01.zhongjian365.com/app/",
/*debug_url : "http://java01.zhongjian365.com/app/",
release_url: "http://java01.zhongjian365.com/app/",
h5_debug_url : "http://testbuilt.zhongjian365.com/",

@ -669,6 +669,8 @@ class BaseInfoChangeAct : BaseVmAct<BaseInfoVm>(){
override fun onSuccess(requestCode: Int) {
super.onSuccess(requestCode)
LogUtils.e("BaseInfoChangeAct","onSuccess${requestCode}")
if(requestCode == 0x00011){
PictureUtils.openCamera(this@BaseInfoChangeAct)
}else{

Loading…
Cancel
Save