Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

小米权限如何重新获取 #21

Closed
zhongcg opened this issue Jan 19, 2018 · 1 comment
Closed

小米权限如何重新获取 #21

zhongcg opened this issue Jan 19, 2018 · 1 comment

Comments

@zhongcg
Copy link

zhongcg commented Jan 19, 2018

第一次获取权限时用户未授权悬浮窗权限,第二次进入页面如何重新获取权限。

@Override
public void show() {
    if (once) {
        mFloatView.init();
        once = false;
        isShow = true;
    } else {
        if (isShow) return;
        getView().setVisibility(View.VISIBLE);
        isShow = true;
    }
}

第一次进来时,未获取到权限,isShow = true。 第二次进页面,如何重新获取权限并初始化mFloatView

@yhaolpz
Copy link
Owner

yhaolpz commented May 5, 2018

v1.0.9添加权限申请结果回调,可处理这种情况。

@yhaolpz yhaolpz closed this as completed May 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants