推送别名设置
This commit is contained in:
parent
d073e8a708
commit
e9033410b4
@ -182,7 +182,7 @@ dependencies {
|
||||
implementation 'com.umeng.umsdk:uverify-logger:2.1.4'// 必选
|
||||
implementation 'com.umeng.umsdk:uverify-crashshield:2.1.4'// 必选
|
||||
//推送
|
||||
implementation 'com.umeng.umsdk:push:6.6.3'// 必选
|
||||
// implementation 'com.umeng.umsdk:push:6.6.3'// 必选
|
||||
|
||||
implementation 'cn.jiguang.sdk:jpush:5.3.1'
|
||||
}
|
@ -9,7 +9,6 @@ import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.os.Process
|
||||
import android.util.Log
|
||||
import anet.channel.util.Utils.context
|
||||
import cn.jiguang.api.utils.JCollectionAuth
|
||||
import cn.jpush.android.api.JPushInterface
|
||||
import com.alct.mdp.MDPLocationCollectionManager
|
||||
@ -17,7 +16,6 @@ import com.dahe.gldriver.BuildConfig
|
||||
import com.dahe.gldriver.R
|
||||
import com.dahe.gldriver.net.Api
|
||||
import com.dahe.gldriver.oss.OssServiceUtil
|
||||
import com.dahe.gldriver.push.PushHelper
|
||||
import com.dahe.gldriver.third.JTTProcess
|
||||
import com.dahe.gldriver.third.PlayerMusicService
|
||||
import com.dahe.gldriver.third.SPUtil
|
||||
@ -32,8 +30,6 @@ import com.gyf.cactus.Cactus
|
||||
import com.gyf.cactus.callback.CactusBackgroundCallback
|
||||
import com.tencent.bugly.crashreport.CrashReport
|
||||
import com.umeng.commonsdk.UMConfigure
|
||||
import com.umeng.message.PushAgent
|
||||
import com.umeng.message.api.UPushRegisterCallback
|
||||
import com.umeng.umverify.UMVerifyHelper
|
||||
import com.umeng.umverify.listener.UMTokenResultListener
|
||||
import java.security.SecureRandom
|
||||
@ -55,7 +51,7 @@ class App : Application() {
|
||||
// CrashHandler.getInstance().init(this);
|
||||
// CrashHandler2.getInstance().init(getApplicationContext());
|
||||
}
|
||||
CrashReport.initCrashReport(getApplicationContext(), AppConfig.BUGLY_APP_ID, false);
|
||||
CrashReport.initCrashReport(applicationContext, AppConfig.BUGLY_APP_ID, false);
|
||||
|
||||
OssServiceUtil.getInstance().init();
|
||||
|
||||
@ -65,39 +61,39 @@ class App : Application() {
|
||||
|
||||
initThird()
|
||||
|
||||
var pendingIntent: PendingIntent = getActivity(
|
||||
applicationContext, 0,
|
||||
Intent(applicationContext, HomeActivity::class.java),
|
||||
FLAG_UPDATE_CURRENT
|
||||
)
|
||||
Cactus.instance
|
||||
.isDebug(true)
|
||||
.setTitle("大河好运")
|
||||
.setContent("大河好运司机端为您提供服务")
|
||||
.setSmallIcon(R.mipmap.app_icon)
|
||||
.setChannelId(AppUtils.getAppPackageName())
|
||||
.setChannelName(AppUtils.getAppPackageName())
|
||||
//可选,设置通知栏点击事件
|
||||
.setPendingIntent(pendingIntent)
|
||||
.setBackgroundMusicEnabled(true)//可选,退到后台是否可以播放音乐
|
||||
.setMusicInterval(20000)//设置音乐间隔时间,时间间隔越长,越省电,默认间隔时间是0
|
||||
// .setMusicId(R.raw.main) //可选,设置音乐
|
||||
// .addCallback(new CactusCallback())//可选,运行时回调
|
||||
// .setCrashRestartUIEnabled(true) //可选,设置奔溃可以重启,google原生rom android 10以下可以正常重启
|
||||
// .setNotification(MyNotification.getInstance().getNotification(this))
|
||||
.hideNotificationAfterO(true)
|
||||
.addCallback {
|
||||
OrderUtils.getInstance().upLocation(applicationContext)
|
||||
}
|
||||
.addBackgroundCallback(object : CactusBackgroundCallback {
|
||||
|
||||
override fun onBackground(background: Boolean) {
|
||||
if (background) {
|
||||
// getBillLocation();
|
||||
}
|
||||
}
|
||||
})
|
||||
.register(this)
|
||||
// var pendingIntent: PendingIntent = getActivity(
|
||||
// applicationContext, 0,
|
||||
// Intent(applicationContext, HomeActivity::class.java),
|
||||
// FLAG_UPDATE_CURRENT
|
||||
// )
|
||||
// Cactus.instance
|
||||
// .isDebug(true)
|
||||
// .setTitle("大河好运")
|
||||
// .setContent("大河好运司机端为您提供服务")
|
||||
// .setSmallIcon(R.mipmap.app_icon)
|
||||
// .setChannelId(AppUtils.getAppPackageName())
|
||||
// .setChannelName(AppUtils.getAppPackageName())
|
||||
// //可选,设置通知栏点击事件
|
||||
// .setPendingIntent(pendingIntent)
|
||||
// .setBackgroundMusicEnabled(true)//可选,退到后台是否可以播放音乐
|
||||
// .setMusicInterval(20000)//设置音乐间隔时间,时间间隔越长,越省电,默认间隔时间是0
|
||||
//// .setMusicId(R.raw.main) //可选,设置音乐
|
||||
//// .addCallback(new CactusCallback())//可选,运行时回调
|
||||
//// .setCrashRestartUIEnabled(true) //可选,设置奔溃可以重启,google原生rom android 10以下可以正常重启
|
||||
//// .setNotification(MyNotification.getInstance().getNotification(this))
|
||||
// .hideNotificationAfterO(true)
|
||||
// .addCallback {
|
||||
// OrderUtils.getInstance().upLocation(applicationContext)
|
||||
// }
|
||||
// .addBackgroundCallback(object : CactusBackgroundCallback {
|
||||
//
|
||||
// override fun onBackground(background: Boolean) {
|
||||
// if (background) {
|
||||
//// getBillLocation();
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
// .register(this)
|
||||
}
|
||||
|
||||
override fun attachBaseContext(base: Context) {
|
||||
@ -112,7 +108,7 @@ class App : Application() {
|
||||
if (packageName == getCurrentProcessName(this)) {
|
||||
//Log.e("--使用的测试环境--",BuildConfig.OPEN_API_URL);
|
||||
MDPLocationCollectionManager.initialize(applicationContext, BuildConfig.OPEN_AL_URL)
|
||||
MDPLocationCollectionManager.initServiceProcessProguard(context) // 保活代码
|
||||
MDPLocationCollectionManager.initServiceProcessProguard(applicationContext) // 保活代码
|
||||
startService(Intent(this, PlayerMusicService::class.java)) // 保活代码
|
||||
}
|
||||
|
||||
@ -151,29 +147,6 @@ class App : Application() {
|
||||
//友盟
|
||||
UMConfigure.preInit(this, AppConfig.APP_KEY, "Umeng");
|
||||
|
||||
// 推送注册
|
||||
val api = PushAgent.getInstance(this)
|
||||
PushHelper.setting(api)
|
||||
api.register(object : UPushRegisterCallback {
|
||||
override fun onSuccess(p0: String?) {//注册厂商通道
|
||||
Log.e(
|
||||
"TAG",
|
||||
"register failed! code:$p0"
|
||||
)
|
||||
//注册厂商通道
|
||||
// registerDevicePush(context)
|
||||
|
||||
}
|
||||
|
||||
override fun onFailure(p0: String?, p1: String?) {
|
||||
Log.e(
|
||||
"TAG",
|
||||
"register failed! code:$p0,desc:$p1"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
})
|
||||
UMConfigure.init(
|
||||
this,
|
||||
AppConfig.APP_KEY,
|
||||
|
@ -1,15 +1,11 @@
|
||||
package com.dahe.gldriver.push
|
||||
|
||||
import android.app.Notification
|
||||
import android.content.Context
|
||||
import android.util.Log
|
||||
import cn.jpush.android.api.JPushInterface
|
||||
import cn.jpush.android.api.TagAliasCallback
|
||||
import com.dahe.gldriver.utils.SPUtils
|
||||
import com.dahe.glex.bean.UserBean
|
||||
import com.dahe.mylibrary.callback.PushAliasListener
|
||||
import com.umeng.message.PushAgent
|
||||
import com.umeng.message.UmengMessageHandler
|
||||
import com.umeng.message.UmengNotificationClickHandler
|
||||
import com.umeng.message.entity.UMessage
|
||||
|
||||
/**
|
||||
* PushSDK集成帮助类
|
||||
@ -20,67 +16,67 @@ object PushHelper {
|
||||
/**
|
||||
* 推送设置
|
||||
*/
|
||||
fun setting(api: PushAgent) {
|
||||
//修改为您app/src/main/AndroidManifest.xml中package值
|
||||
api.resourcePackageName = "com.dahe.gldriver"
|
||||
|
||||
//设置通知栏显示通知的最大个数(0~10),0:不限制个数
|
||||
api.displayNotificationNumber = 0
|
||||
|
||||
//推送消息处理
|
||||
val msgHandler: UmengMessageHandler = object : UmengMessageHandler() {
|
||||
//处理通知栏消息
|
||||
override fun dealWithNotificationMessage(context: Context, msg: UMessage) {
|
||||
super.dealWithNotificationMessage(context, msg)
|
||||
Log.i(TAG, """notification receiver:${msg.raw}""".trimIndent())
|
||||
}
|
||||
|
||||
//自定义通知样式,此方法可以修改通知样式等
|
||||
override fun getNotification(context: Context, msg: UMessage): Notification {
|
||||
return super.getNotification(context, msg)
|
||||
}
|
||||
|
||||
//处理透传消息
|
||||
override fun dealWithCustomMessage(context: Context, msg: UMessage) {
|
||||
super.dealWithCustomMessage(context, msg)
|
||||
Log.i(
|
||||
TAG, """custom receiver:${msg.raw}""".trimIndent()
|
||||
)
|
||||
}
|
||||
}
|
||||
api.messageHandler = msgHandler
|
||||
|
||||
//推送消息点击处理
|
||||
val notificationClickHandler: UmengNotificationClickHandler =
|
||||
object : UmengNotificationClickHandler() {
|
||||
override fun openActivity(context: Context, msg: UMessage) {
|
||||
super.openActivity(context, msg)
|
||||
Log.i(TAG, """click open activity:${msg.raw}""".trimIndent())
|
||||
}
|
||||
|
||||
override fun launchApp(context: Context, msg: UMessage) {
|
||||
super.launchApp(context, msg)
|
||||
Log.i(TAG, """click launch app:${msg.raw}""".trimIndent())
|
||||
}
|
||||
|
||||
override fun openUrl(context: Context, msg: UMessage) {
|
||||
super.openUrl(context, msg)
|
||||
Log.i(TAG, """click open deeplink:${msg.raw}""".trimIndent())
|
||||
}
|
||||
|
||||
override fun dismissNotification(context: Context, msg: UMessage) {
|
||||
super.dismissNotification(context, msg)
|
||||
Log.i(TAG, """dismissNotification:${msg.raw}""".trimIndent())
|
||||
}
|
||||
}
|
||||
api.notificationClickHandler = notificationClickHandler
|
||||
|
||||
//通过Service自定义接收并处理消息
|
||||
// api.setPushIntentServiceClass(MyCustomMessageService.class);
|
||||
|
||||
//设置厂商Token回调
|
||||
api.setThirdTokenCallback { type, token -> Log.i(TAG, "push type:$type token:$token") }
|
||||
}
|
||||
// fun setting(api: PushAgent) {
|
||||
// //修改为您app/src/main/AndroidManifest.xml中package值
|
||||
// api.resourcePackageName = "com.dahe.gldriver"
|
||||
//
|
||||
// //设置通知栏显示通知的最大个数(0~10),0:不限制个数
|
||||
// api.displayNotificationNumber = 0
|
||||
//
|
||||
// //推送消息处理
|
||||
// val msgHandler: UmengMessageHandler = object : UmengMessageHandler() {
|
||||
// //处理通知栏消息
|
||||
// override fun dealWithNotificationMessage(context: Context, msg: UMessage) {
|
||||
// super.dealWithNotificationMessage(context, msg)
|
||||
// Log.i(TAG, """notification receiver:${msg.raw}""".trimIndent())
|
||||
// }
|
||||
//
|
||||
// //自定义通知样式,此方法可以修改通知样式等
|
||||
// override fun getNotification(context: Context, msg: UMessage): Notification {
|
||||
// return super.getNotification(context, msg)
|
||||
// }
|
||||
//
|
||||
// //处理透传消息
|
||||
// override fun dealWithCustomMessage(context: Context, msg: UMessage) {
|
||||
// super.dealWithCustomMessage(context, msg)
|
||||
// Log.i(
|
||||
// TAG, """custom receiver:${msg.raw}""".trimIndent()
|
||||
// )
|
||||
// }
|
||||
// }
|
||||
// api.messageHandler = msgHandler
|
||||
//
|
||||
// //推送消息点击处理
|
||||
// val notificationClickHandler: UmengNotificationClickHandler =
|
||||
// object : UmengNotificationClickHandler() {
|
||||
// override fun openActivity(context: Context, msg: UMessage) {
|
||||
// super.openActivity(context, msg)
|
||||
// Log.i(TAG, """click open activity:${msg.raw}""".trimIndent())
|
||||
// }
|
||||
//
|
||||
// override fun launchApp(context: Context, msg: UMessage) {
|
||||
// super.launchApp(context, msg)
|
||||
// Log.i(TAG, """click launch app:${msg.raw}""".trimIndent())
|
||||
// }
|
||||
//
|
||||
// override fun openUrl(context: Context, msg: UMessage) {
|
||||
// super.openUrl(context, msg)
|
||||
// Log.i(TAG, """click open deeplink:${msg.raw}""".trimIndent())
|
||||
// }
|
||||
//
|
||||
// override fun dismissNotification(context: Context, msg: UMessage) {
|
||||
// super.dismissNotification(context, msg)
|
||||
// Log.i(TAG, """dismissNotification:${msg.raw}""".trimIndent())
|
||||
// }
|
||||
// }
|
||||
// api.notificationClickHandler = notificationClickHandler
|
||||
//
|
||||
// //通过Service自定义接收并处理消息
|
||||
//// api.setPushIntentServiceClass(MyCustomMessageService.class);
|
||||
//
|
||||
// //设置厂商Token回调
|
||||
// api.setThirdTokenCallback { type, token -> Log.i(TAG, "push type:$type token:$token") }
|
||||
// }
|
||||
|
||||
/**
|
||||
* 注册设备推送通道(小米、华为等设备的推送)
|
||||
@ -106,16 +102,23 @@ object PushHelper {
|
||||
* 绑定别名,绑定成功后可通过别名推送消息
|
||||
*/
|
||||
fun setAlias(context: Context, userBean: UserBean) {
|
||||
val alias = userBean.contactPhone
|
||||
val type = "uid"
|
||||
PushAgent.getInstance(context).setAlias(alias, type) { success, message ->
|
||||
val msg: String
|
||||
msg = if (success) {
|
||||
"set alias success! type:$type alias:$alias"
|
||||
} else {
|
||||
"set alias failure! msg:$message"
|
||||
}
|
||||
}
|
||||
JPushInterface.setAlias(
|
||||
context,
|
||||
1,
|
||||
userBean.contactPhone
|
||||
)
|
||||
|
||||
|
||||
// val alias = userBean.contactPhone
|
||||
// val type = "uid"
|
||||
// PushAgent.getInstance(context).setAlias(alias, type) { success, message ->
|
||||
// val msg: String
|
||||
// msg = if (success) {
|
||||
// "set alias success! type:$type alias:$alias"
|
||||
// } else {
|
||||
// "set alias failure! msg:$message"
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
/**
|
||||
@ -123,16 +126,17 @@ object PushHelper {
|
||||
*/
|
||||
fun delete(context: Context, listener: PushAliasListener? = null) {
|
||||
val alias = SPUtils.instance.getUserInfo(context)?.contactPhone
|
||||
val type = "uid"
|
||||
PushAgent.getInstance(context).deleteAlias(alias, type) { success, message ->
|
||||
val msg: String
|
||||
listener?.onResult(success)
|
||||
msg = if (success) {
|
||||
"delete alias success! type:$type alias:$alias"
|
||||
} else {
|
||||
"delete alias failure! msg:$message"
|
||||
}
|
||||
}
|
||||
JPushInterface.deleteAlias(context, 1)
|
||||
// val type = "uid"
|
||||
// PushAgent.getInstance(context).deleteAlias(alias, type) { success, message ->
|
||||
// val msg: String
|
||||
// listener?.onResult(success)
|
||||
// msg = if (success) {
|
||||
// "delete alias success! type:$type alias:$alias"
|
||||
// } else {
|
||||
// "delete alias failure! msg:$message"
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
/**
|
||||
@ -140,16 +144,22 @@ object PushHelper {
|
||||
*/
|
||||
fun setAlias(context: Context, listener: PushAliasListener) {
|
||||
val alias = (SPUtils.instance.getUserInfo(context) as UserBean).contactPhone
|
||||
val type = "uid"
|
||||
PushAgent.getInstance(context).setAlias(alias, type) { success, message ->
|
||||
val msg: String
|
||||
listener.onResult(success)
|
||||
msg = if (success) {
|
||||
"set alias success! type:$type alias:$alias"
|
||||
} else {
|
||||
"set alias failure! msg:$message"
|
||||
}
|
||||
}
|
||||
JPushInterface.setAlias(
|
||||
context,
|
||||
1,
|
||||
alias
|
||||
)
|
||||
// val alias = (SPUtils.instance.getUserInfo(context) as UserBean).contactPhone
|
||||
// val type = "uid"
|
||||
// PushAgent.getInstance(context).setAlias(alias, type) { success, message ->
|
||||
// val msg: String
|
||||
// listener.onResult(success)
|
||||
// msg = if (success) {
|
||||
// "set alias success! type:$type alias:$alias"
|
||||
// } else {
|
||||
// "set alias failure! msg:$message"
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -76,7 +76,7 @@ public class TagAliasOperatorHelper {
|
||||
|
||||
if(jPushMessage.getErrorCode() == 0){
|
||||
Log.i(TAG,"action - modify alias Success,sequence:"+sequence);
|
||||
ToastUtils.showToast(context,"modify success");
|
||||
// ToastUtils.showToast(context,"modify success");
|
||||
}else{
|
||||
String logs = "Failed to modify alias, errorCode:" + jPushMessage.getErrorCode();
|
||||
Log.e(TAG, logs);
|
||||
|
@ -14,6 +14,7 @@ import com.dahe.gldriver.databinding.ActivityLauncherBinding
|
||||
import com.dahe.gldriver.third.JTTProcess
|
||||
import com.dahe.gldriver.third.SPUtil
|
||||
import com.dahe.gldriver.ui.account.LoginActivity
|
||||
import com.dahe.gldriver.ui.account.SelectRoleActivity
|
||||
import com.dahe.gldriver.utils.CommonPopUtils
|
||||
import com.dahe.gldriver.utils.SPUtils
|
||||
import com.dahe.mylibrary.base.BaseActivity
|
||||
@ -35,6 +36,15 @@ class LauncherActivity : BaseActivity<ActivityLauncherBinding>() {
|
||||
//已登录,直接跳转首页
|
||||
//
|
||||
if (!SPUtils.instance.getUserToken(mContext).isNullOrEmpty()) {
|
||||
// val userInfo = SPUtils.instance.getUserInfo(mContext)
|
||||
// if (userInfo?.isCarCaptain == "9") {//是否是车队长(0=否,1=是,9=未选择)
|
||||
// ActivityUtils.startActivity(
|
||||
// mContext,
|
||||
// SelectRoleActivity::class.java
|
||||
// )
|
||||
// } else {
|
||||
// ActivityUtils.startActivity(mContext, HomeActivity::class.java, intent.extras)
|
||||
// }
|
||||
ActivityUtils.startActivity(mContext, HomeActivity::class.java, intent.extras)
|
||||
} else {
|
||||
ActivityUtils.startActivity(this@LauncherActivity, LoginActivity::class.java)
|
||||
@ -107,16 +117,22 @@ class LauncherActivity : BaseActivity<ActivityLauncherBinding>() {
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe { aLong: Long ->
|
||||
binding.tvCount.setText((count - aLong).toString())
|
||||
binding.tvCount.text = (count - aLong).toString()
|
||||
if (count - aLong == 0L) {
|
||||
mDisposable?.dispose()
|
||||
//已登录,直接跳转首页
|
||||
//已登录,直接跳转首页
|
||||
if (!SPUtils.instance.getUserToken(mContext).isNullOrEmpty()) {
|
||||
ActivityUtils.startActivity(
|
||||
mContext,
|
||||
HomeActivity::class.java
|
||||
)
|
||||
// val userInfo = SPUtils.instance.getUserInfo(mContext)
|
||||
// if (userInfo?.isCarCaptain == "9") {//是否是车队长(0=否,1=是,9=未选择)
|
||||
// ActivityUtils.startActivity(
|
||||
// mContext,
|
||||
// SelectRoleActivity::class.java
|
||||
// )
|
||||
// } else {
|
||||
// ActivityUtils.startActivity(mContext, HomeActivity::class.java, intent.extras)
|
||||
// }
|
||||
ActivityUtils.startActivity(mContext, HomeActivity::class.java, intent.extras)
|
||||
} else {
|
||||
ActivityUtils.startActivity(
|
||||
this@LauncherActivity,
|
||||
|
@ -154,6 +154,7 @@ class AuthTrailerActivity : BaseActivity<ActivityAuthTrailerBinding>() {
|
||||
passengerCapacity = it.passengerCapacity
|
||||
totalWeight = if (it.totalWeight.contains("kg")) it.totalWeight.split("kg")[0] else ""
|
||||
curbWeight = if (it.curbWeight.contains("kg")) it.curbWeight.split("kg")[0] else ""
|
||||
approvedLoad = if (it.permittedWeight.contains("kg")) it.permittedWeight.split("kg")[0] else ""
|
||||
}
|
||||
|
||||
//车长
|
||||
|
@ -208,6 +208,8 @@ class EditTrailerActivity : BaseActivity<ActivityAuthTrailerBinding>() {
|
||||
if (it.totalWeight.contains("kg")) it.totalWeight.split("kg")[0] else ""
|
||||
curbWeight =
|
||||
if (it.curbWeight.contains("kg")) it.curbWeight.split("kg")[0] else ""
|
||||
approvedLoad =
|
||||
if (it.permittedWeight.contains("kg")) it.permittedWeight.split("kg")[0] else ""
|
||||
}
|
||||
|
||||
//车长
|
||||
|
@ -144,7 +144,7 @@ class SeeDocActivity : BaseActivity<ActivitySeeDocBinding>() {
|
||||
super.onSuccess(t)
|
||||
if (t.data != null && t.data.size > 0) {
|
||||
val load = t.data.find { it.type == "1" }
|
||||
val unLoad = t.data.filter { it.type == "2" }.maxBy { it.displayOrder }
|
||||
val unLoad = t.data.lastOrNull { it.type == "2" }
|
||||
|
||||
loadDatas.submitList(t.data.filter { it.type == "1" }
|
||||
.map { LocalMedia().apply { path = it.photoUrl } }.toMutableList())
|
||||
|
@ -316,6 +316,7 @@ class WaybillUpPicActivity : BaseActivity<ActivityWaybillUppicBinding>() {
|
||||
}
|
||||
|
||||
private fun unLoad(location: Location) {
|
||||
showLoading()
|
||||
MDPLocationCollectionManager.unload(mContext, orderBean.orderNum, location,
|
||||
object : OnResultListener {
|
||||
override fun onSuccess() {
|
||||
@ -501,7 +502,7 @@ class WaybillUpPicActivity : BaseActivity<ActivityWaybillUppicBinding>() {
|
||||
object : OnResultListener {
|
||||
override fun onSuccess() {
|
||||
Log.e("上报安联", "回单照片上传成功")
|
||||
|
||||
dissLoading()
|
||||
//跳转成功页面,停止上传轨迹
|
||||
OrderUtils.getInstance().stopUpLocation(mContext)
|
||||
ActivityUtils.startActivity(
|
||||
|
@ -14,7 +14,6 @@
|
||||
|
||||
<TextView
|
||||
android:maxLines="1"
|
||||
android:singleLine="true"
|
||||
android:id="@+id/title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
|
@ -137,7 +137,7 @@
|
||||
android:layout_height="@dimen/dp_36"
|
||||
android:layout_below="@+id/tvModel"
|
||||
android:layout_marginTop="@dimen/dp_10"
|
||||
android:background="@color/color_9"></ImageView>
|
||||
></ImageView>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvCom"
|
||||
|
@ -87,9 +87,8 @@ class PopNorBottomPic(
|
||||
.isPreviewImage(true)
|
||||
.isMaxSelectEnabledMask(true)
|
||||
// .setMaxSelectNum(1)
|
||||
.setSelectionMode(SelectModeConfig.SINGLE)
|
||||
.isDirectReturnSingle(true)
|
||||
.setSelectionMode(SelectModeConfig.SINGLE)
|
||||
// .setSelectionMode(SelectModeConfig.SINGLE)
|
||||
// .isDirectReturnSingle(true)
|
||||
.isGif(false)
|
||||
// .isDirectReturnSingle(true)
|
||||
// .setSelectedData(myAdapter.data)
|
||||
|
Loading…
Reference in New Issue
Block a user