浏览代码

fix 修复暂停倒计时无效的问题

RobinTan1024 4 年之前
父节点
当前提交
004d96d320
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/src/main/java/com/doverfuelingsolutions/issp/view/widget/FragmentToolbar.kt

+ 1 - 0
app/src/main/java/com/doverfuelingsolutions/issp/view/widget/FragmentToolbar.kt

@@ -51,6 +51,7 @@ class FragmentToolbar(context: Context, attrs: AttributeSet) : FrameLayout(conte
                 isHomeVisible = getBoolean(R.styleable.FragmentToolbar_homeVisible, true)
                 title = getString(R.styleable.FragmentToolbar_title) ?: ""
                 countdownTime = getInteger(R.styleable.FragmentToolbar_countdownTime, 60)
+                currentTime = countdownTime
                 countdownAutoStart = getBoolean(R.styleable.FragmentToolbar_countdownAutoStart, true)
             } finally {
                 recycle()