소스 검색

优化倒计时

lhm 3 년 전
부모
커밋
247e67dba8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/src/main/java/com/emato/ich/utils/TimeOutUtils.java

+ 1 - 1
app/src/main/java/com/emato/ich/utils/TimeOutUtils.java

@@ -45,9 +45,9 @@ public class TimeOutUtils {
             public void onFinish() {
                 int fragmentAction = getFragmentAction(fragment);
                 if (fragmentAction != 0) {
+                    NavHostFragment.findNavController(fragment).navigate(fragmentAction);
                     // 清空session和页面传值
                     LocalStorage.getInstance().cleanSession(mainActivity);
-                    NavHostFragment.findNavController(fragment).navigate(fragmentAction);
                 }
             }
         };