提交 87dd49c2 编写于 作者: Q qiang

fix(App): android onHide

上级 739e0b48
......@@ -151,6 +151,12 @@ function initAppLaunch (appVm) {
callAppHook(appVm, 'onLaunch', args)
callAppHook(appVm, 'onShow', args)
// https://tower.im/teams/226535/todos/16905/
const getAppState = weex.requireModule('plus').getAppState
const appState = getAppState && Number(getAppState())
if (appState === 2) {
callAppHook(appVm, 'onHide', args)
}
}
function initTabBar () {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册