增大签到点击区域
This commit is contained in:
parent
1d01835f48
commit
53781eb544
|
|
@ -88,10 +88,10 @@ class TasksFragment : AppViewsFragment<ViewBinding, UiState, ViewModel>(), OnTab
|
|||
|
||||
override fun ViewBinding.initViews() {
|
||||
with(binding) {
|
||||
setOnClickBatch(ivGotoDailySign, weekStatusView, llSignTitle, llTaskBenefit, llTaskWatchAd, llTaskGame,
|
||||
setOnClickBatch(llSignRoot, llTaskBenefit, llTaskWatchAd, llTaskGame,
|
||||
llTaskZerobuy, flConvertGold2Cash, tvWithdraw) {
|
||||
when(this) {
|
||||
ivGotoDailySign, weekStatusView, llSignTitle->{
|
||||
llSignRoot->{
|
||||
if (!TaskManager.instance().dailySignStatus().isDailySignAllOperationDone()) {
|
||||
DailySignDialog(requireActivity()).show()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -436,9 +436,14 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:background="@drawable/vididinapp_feature_message_bg_task_login"
|
||||
android:paddingHorizontal="15dp"
|
||||
android:layout_marginTop="10dp">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_sign_root"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:paddingHorizontal="15dp">
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_sign_title"
|
||||
android:layout_width="match_parent"
|
||||
|
|
@ -486,6 +491,7 @@
|
|||
android:textColor="#FFFFFF"
|
||||
android:textSize="18sp"
|
||||
/>
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
|
|
@ -493,7 +499,8 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:orientation="vertical">
|
||||
android:orientation="vertical"
|
||||
android:paddingHorizontal="15dp">
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
|
|
|
|||
|
|
@ -50,6 +50,10 @@ class NotificationKeepAliveService : Service() {
|
|||
NotiLogger.d("设置通知保活默认轮训间隔时间: ${seconds}秒")
|
||||
}
|
||||
|
||||
fun setServerStatus(running: Boolean) {
|
||||
isServiceRunning = running
|
||||
}
|
||||
|
||||
/**
|
||||
* 启动保活服务
|
||||
* @param context 上下文
|
||||
|
|
|
|||
|
|
@ -34,7 +34,10 @@ object NotificationKeepAliveServiceManager {
|
|||
NotiLogger.d("无通知权限,前台服务忽略启动")
|
||||
return
|
||||
}
|
||||
if (isKeepAliveServiceRunning()) {
|
||||
|
||||
val isRunning = isKeepAliveServiceRunning()
|
||||
NotificationKeepAliveService.setServerStatus(isRunning)
|
||||
if (isRunning) {
|
||||
// 服务已运行,更新通知栏
|
||||
NotiLogger.d("保活服务已在运行中,刷新通知栏")
|
||||
NotificationKeepAliveService.updateNotification(context)
|
||||
|
|
|
|||
Loading…
Reference in New Issue