增大签到点击区域

This commit is contained in:
renhaoting 2026-01-12 17:07:39 +08:00
parent 1d01835f48
commit 53781eb544
4 changed files with 56 additions and 42 deletions

View File

@ -88,10 +88,10 @@ class TasksFragment : AppViewsFragment<ViewBinding, UiState, ViewModel>(), OnTab
override fun ViewBinding.initViews() { override fun ViewBinding.initViews() {
with(binding) { with(binding) {
setOnClickBatch(ivGotoDailySign, weekStatusView, llSignTitle, llTaskBenefit, llTaskWatchAd, llTaskGame, setOnClickBatch(llSignRoot, llTaskBenefit, llTaskWatchAd, llTaskGame,
llTaskZerobuy, flConvertGold2Cash, tvWithdraw) { llTaskZerobuy, flConvertGold2Cash, tvWithdraw) {
when(this) { when(this) {
ivGotoDailySign, weekStatusView, llSignTitle->{ llSignRoot->{
if (!TaskManager.instance().dailySignStatus().isDailySignAllOperationDone()) { if (!TaskManager.instance().dailySignStatus().isDailySignAllOperationDone()) {
DailySignDialog(requireActivity()).show() DailySignDialog(requireActivity()).show()
} }

View File

@ -436,9 +436,14 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical" android:orientation="vertical"
android:background="@drawable/vididinapp_feature_message_bg_task_login" android:background="@drawable/vididinapp_feature_message_bg_task_login"
android:paddingHorizontal="15dp"
android:layout_marginTop="10dp"> 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 <LinearLayout
android:id="@+id/ll_sign_title" android:id="@+id/ll_sign_title"
android:layout_width="match_parent" android:layout_width="match_parent"
@ -486,6 +491,7 @@
android:textColor="#FFFFFF" android:textColor="#FFFFFF"
android:textSize="18sp" android:textSize="18sp"
/> />
</LinearLayout>
<LinearLayout <LinearLayout
@ -493,7 +499,8 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="20dp" android:layout_marginTop="20dp"
android:orientation="vertical"> android:orientation="vertical"
android:paddingHorizontal="15dp">
<View <View
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="1dp" android:layout_height="1dp"

View File

@ -50,6 +50,10 @@ class NotificationKeepAliveService : Service() {
NotiLogger.d("设置通知保活默认轮训间隔时间: ${seconds}") NotiLogger.d("设置通知保活默认轮训间隔时间: ${seconds}")
} }
fun setServerStatus(running: Boolean) {
isServiceRunning = running
}
/** /**
* 启动保活服务 * 启动保活服务
* @param context 上下文 * @param context 上下文

View File

@ -34,7 +34,10 @@ object NotificationKeepAliveServiceManager {
NotiLogger.d("无通知权限,前台服务忽略启动") NotiLogger.d("无通知权限,前台服务忽略启动")
return return
} }
if (isKeepAliveServiceRunning()) {
val isRunning = isKeepAliveServiceRunning()
NotificationKeepAliveService.setServerStatus(isRunning)
if (isRunning) {
// 服务已运行,更新通知栏 // 服务已运行,更新通知栏
NotiLogger.d("保活服务已在运行中,刷新通知栏") NotiLogger.d("保活服务已在运行中,刷新通知栏")
NotificationKeepAliveService.updateNotification(context) NotificationKeepAliveService.updateNotification(context)