增大签到点击区域
This commit is contained in:
parent
1d01835f48
commit
53781eb544
|
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -436,64 +436,71 @@
|
||||||
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
|
<LinearLayout
|
||||||
android:id="@+id/ll_sign_title"
|
android:id="@+id/ll_sign_root"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal"
|
android:orientation="vertical"
|
||||||
android:gravity="center_vertical"
|
android:paddingHorizontal="15dp">
|
||||||
android:padding="10dp">
|
<LinearLayout
|
||||||
|
android:id="@+id/ll_sign_title"
|
||||||
<androidx.appcompat.widget.AppCompatImageView
|
android:layout_width="match_parent"
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:src="@mipmap/task_calendar"
|
android:orientation="horizontal"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:padding="10dp">
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatImageView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:src="@mipmap/task_calendar"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:textSize="21sp"
|
||||||
|
android:layout_marginLeft="10dp"
|
||||||
|
android:textColor="@color/black"
|
||||||
|
android:text="Login Diário"
|
||||||
|
/>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<com.gamedog.vididin.main.fragments.task.WeekStatusView
|
||||||
|
android:id="@+id/weekStatusView"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginHorizontal="15dp"
|
||||||
|
android:layout_marginTop="15dp"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
android:layout_width="wrap_content"
|
android:id="@+id/iv_goto_daily_sign"
|
||||||
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:textStyle="bold"
|
android:gravity="center"
|
||||||
android:textSize="21sp"
|
android:layout_marginHorizontal="14dp"
|
||||||
android:layout_marginLeft="10dp"
|
android:layout_marginTop="5dp"
|
||||||
android:textColor="@color/black"
|
android:background="@drawable/vididinapp_feature_message_bg_task_fazer"
|
||||||
android:text="Login Diário"
|
android:text="Fazer Login Agora"
|
||||||
|
android:paddingVertical="9dp"
|
||||||
|
android:textColor="#FFFFFF"
|
||||||
|
android:textSize="18sp"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<com.gamedog.vididin.main.fragments.task.WeekStatusView
|
|
||||||
android:id="@+id/weekStatusView"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginHorizontal="15dp"
|
|
||||||
android:layout_marginTop="15dp"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
|
||||||
android:id="@+id/iv_goto_daily_sign"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:gravity="center"
|
|
||||||
android:layout_marginHorizontal="14dp"
|
|
||||||
android:layout_marginTop="5dp"
|
|
||||||
android:background="@drawable/vididinapp_feature_message_bg_task_fazer"
|
|
||||||
android:text="Fazer Login Agora"
|
|
||||||
android:paddingVertical="9dp"
|
|
||||||
android:textColor="#FFFFFF"
|
|
||||||
android:textSize="18sp"
|
|
||||||
/>
|
|
||||||
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/newbie_container"
|
android:id="@+id/newbie_container"
|
||||||
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"
|
||||||
|
|
|
||||||
|
|
@ -50,6 +50,10 @@ class NotificationKeepAliveService : Service() {
|
||||||
NotiLogger.d("设置通知保活默认轮训间隔时间: ${seconds}秒")
|
NotiLogger.d("设置通知保活默认轮训间隔时间: ${seconds}秒")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun setServerStatus(running: Boolean) {
|
||||||
|
isServiceRunning = running
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 启动保活服务
|
* 启动保活服务
|
||||||
* @param context 上下文
|
* @param context 上下文
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue