[opt]1.扩大'跳过'菜单、小地图开关点击区域;2.增加解决子任务log
This commit is contained in:
@@ -431,7 +431,7 @@ class SweeperFragment : BaseSweeperTabFragment<SweeperFragment?, SweeperPresente
|
||||
}
|
||||
|
||||
/**
|
||||
* 是否第一个子任务
|
||||
* 是否最后一个子任务
|
||||
*/
|
||||
fun isLastSubTask(): Boolean {
|
||||
return mCurrentSubPosition == (mSubMutableList?.size?.minus(1))
|
||||
|
||||
@@ -752,7 +752,8 @@ public class SweeperTaskModel {
|
||||
SweeperServiceManager.subTaskEnd(isFirst, isEnd, subTaskId, mContext, new OchCommonServiceCallback<BaseResponse<Boolean>>() {
|
||||
@Override
|
||||
public void onSuccess(BaseResponse<Boolean> data) {
|
||||
CallerLogger.INSTANCE.d(M_SWEEPER + TAG, "subTaskEnd:" + GsonUtil.jsonFromObject(data));
|
||||
CallerLogger.INSTANCE.d(M_SWEEPER + TAG, "subTaskEnd:" +
|
||||
String.format("isFirst=%b; isEnd=%b; ", isFirst, isEnd) + GsonUtil.jsonFromObject(data));
|
||||
if (data != null) {
|
||||
if (data.getData()) {
|
||||
mIsSubTaskWorking = false;
|
||||
@@ -802,7 +803,8 @@ public class SweeperTaskModel {
|
||||
SweeperServiceManager.subTaskSkip(isFirst, isEnd, subTaskId, mContext, new OchCommonServiceCallback<BaseResponse<Boolean>>() {
|
||||
@Override
|
||||
public void onSuccess(BaseResponse<Boolean> data) {
|
||||
CallerLogger.INSTANCE.d(M_SWEEPER + TAG, "subTaskSkip:" + GsonUtil.jsonFromObject(data));
|
||||
CallerLogger.INSTANCE.d(M_SWEEPER + TAG, "subTaskSkip:" +
|
||||
String.format("isFirst=%b; isEnd=%b; ", isFirst, isEnd)+ GsonUtil.jsonFromObject(data));
|
||||
if (mSweeperTaskCallback != null && data != null) {
|
||||
if (data.getData()) {
|
||||
mIsSubTaskWorking = false;
|
||||
|
||||
@@ -32,14 +32,15 @@
|
||||
android:text="跳过"
|
||||
android:textColor="#A6CEFF"
|
||||
android:textSize="@dimen/dp_30"
|
||||
android:layout_marginTop="@dimen/dp_16"/>
|
||||
android:padding="@dimen/dp_10"
|
||||
android:layout_marginTop="@dimen/dp_6"/>
|
||||
<View
|
||||
android:id="@+id/taskJumpLineView"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="2dp"
|
||||
app:layout_constraintStart_toEndOf="@+id/ivTriangle"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
android:layout_marginTop="@dimen/dp_20"
|
||||
android:layout_marginTop="@dimen/dp_10"
|
||||
android:background="#4DA6CEFF"
|
||||
app:layout_constraintTop_toBottomOf="@+id/tvJumpOverTask"
|
||||
android:layout_marginStart="@dimen/dp_16"
|
||||
@@ -54,14 +55,15 @@
|
||||
android:text="结束"
|
||||
android:textColor="#A6CEFF"
|
||||
android:textSize="@dimen/dp_30"
|
||||
android:layout_marginTop="@dimen/dp_16"/>
|
||||
android:padding="@dimen/dp_10"
|
||||
android:layout_marginTop="@dimen/dp_6"/>
|
||||
<View
|
||||
android:id="@+id/taskFinishLineView"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="2dp"
|
||||
app:layout_constraintStart_toEndOf="@+id/ivTriangle"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
android:layout_marginTop="@dimen/dp_20"
|
||||
android:layout_marginTop="@dimen/dp_10"
|
||||
android:background="#4DA6CEFF"
|
||||
app:layout_constraintTop_toBottomOf="@+id/tvEndTask"
|
||||
android:layout_marginStart="@dimen/dp_16"
|
||||
@@ -76,10 +78,11 @@
|
||||
android:text="取消"
|
||||
android:textColor="#A6CEFF"
|
||||
android:textSize="@dimen/dp_30"
|
||||
android:layout_marginTop="@dimen/dp_16"/>
|
||||
android:padding="@dimen/dp_10"
|
||||
android:layout_marginTop="@dimen/dp_6"/>
|
||||
<Space
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/dp_16"
|
||||
android:layout_height="@dimen/dp_6"
|
||||
app:layout_constraintStart_toEndOf="@+id/ivTriangle"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/tvCancelTask"/>
|
||||
|
||||
@@ -10,13 +10,14 @@
|
||||
android:layout_height="match_parent"/>
|
||||
<ImageView
|
||||
android:id="@+id/sweeperSwitchToSmall"
|
||||
android:layout_width="@dimen/dp_73"
|
||||
android:layout_height="@dimen/dp_73"
|
||||
android:layout_width="@dimen/dp_127"
|
||||
android:layout_height="@dimen/dp_127"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
android:src="@drawable/sweeper_full_screen_icon"
|
||||
android:layout_marginEnd="@dimen/dp_50"
|
||||
android:layout_marginTop="@dimen/dp_50"/>
|
||||
android:layout_marginEnd="@dimen/dp_23"
|
||||
android:layout_marginTop="@dimen/dp_23"
|
||||
android:padding="@dimen/dp_27"/>
|
||||
<com.mogo.och.common.module.wigets.OCHRoundConstraintLayout
|
||||
android:id="@+id/groupLegend"
|
||||
android:layout_width="@dimen/dp_380"
|
||||
|
||||
@@ -14,14 +14,13 @@
|
||||
app:layout_constraintEnd_toEndOf="parent"/>
|
||||
<ImageView
|
||||
android:id="@+id/sweeperSwitchToBig"
|
||||
android:layout_width="@dimen/dp_60"
|
||||
android:layout_height="@dimen/dp_60"
|
||||
android:layout_width="@dimen/dp_100"
|
||||
android:layout_height="@dimen/dp_100"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
android:src="@drawable/sweeper_full_screen_icon"
|
||||
android:layout_marginEnd="@dimen/dp_20"
|
||||
android:layout_marginBottom="@dimen/dp_20"
|
||||
android:padding="@dimen/dp_10"/>
|
||||
|
||||
android:padding="@dimen/dp_30"/>
|
||||
<TextView
|
||||
android:id="@+id/taskProgressTv"
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
Reference in New Issue
Block a user