| 
														
															@@ -7,6 +7,7 @@ import android.view.View 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.alibaba.android.arouter.facade.annotation.Route 
														 | 
														
														 | 
														
															 import com.alibaba.android.arouter.facade.annotation.Route 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.yingyang.moca.R 
														 | 
														
														 | 
														
															 import com.yingyang.moca.R 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.yingyang.moca.databinding.ActivityMocaBinding 
														 | 
														
														 | 
														
															 import com.yingyang.moca.databinding.ActivityMocaBinding 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+import com.yingyangfly.baselib.dialog.TipsDialog 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.yingyangfly.baselib.ext.getEndAnimation 
														 | 
														
														 | 
														
															 import com.yingyangfly.baselib.ext.getEndAnimation 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.yingyangfly.baselib.ext.getScaleAnimation 
														 | 
														
														 | 
														
															 import com.yingyangfly.baselib.ext.getScaleAnimation 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.yingyangfly.baselib.ext.toast 
														 | 
														
														 | 
														
															 import com.yingyangfly.baselib.ext.toast 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -104,7 +105,7 @@ class MocaActivity : BaseMVVMActivity<ActivityMocaBinding, MocaViewModel>(), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             MotionEvent.ACTION_UP -> { 
														 | 
														
														 | 
														
															             MotionEvent.ACTION_UP -> { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 v.startAnimation(getEndAnimation()) 
														 | 
														
														 | 
														
															                 v.startAnimation(getEndAnimation()) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 if (v.id == R.id.layoutHead) { 
														 | 
														
														 | 
														
															                 if (v.id == R.id.layoutHead) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    finish() 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    showTipsDialog() 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 } 
														 | 
														
														 | 
														
															                 } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             } 
														 | 
														
														 | 
														
															             } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             MotionEvent.ACTION_CANCEL -> { 
														 | 
														
														 | 
														
															             MotionEvent.ACTION_CANCEL -> { 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -115,4 +116,21 @@ class MocaActivity : BaseMVVMActivity<ActivityMocaBinding, MocaViewModel>(), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } 
														 | 
														
														 | 
														
															         } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         return true 
														 | 
														
														 | 
														
															         return true 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     } 
														 | 
														
														 | 
														
															     } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    /** 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+     * 退出确认弹窗 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+     */ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    private fun showTipsDialog() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        TipsDialog.TipDialogBuilder() 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            .title("提示") 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            .content("您确定取消测评?") 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            .leftBtnText("取消") 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            .rightBtnText("确定") 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            .leftClick({ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            }, true) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            .rightClick({ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                finish() 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            }, true) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            .show(supportFragmentManager) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 } 
														 | 
														
														 | 
														
															 } 
														 |