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

发送策略bug #115

Closed
kansifang opened this issue Jan 23, 2014 · 2 comments
Closed

发送策略bug #115

kansifang opened this issue Jan 23, 2014 · 2 comments
Labels

Comments

@kansifang
Copy link
Contributor

在线设置数据发送策略时Adroid SDK有一个bug,当在线配置为实时发送后就能变为下次发送了。应当updateOnlineConfigs()方法做修改。
if (key.equals("autogetlocation")) {
if(value.equals("1"))
setAutoLocation(true);
else
setAutoLocation(false);
}

                    if (key.equals("updateonlywifi")) {
                        if(value.equals("1"))
                            setUpdateOnlyWifi(true);
                        else
                            setUpdateOnlyWifi(false);
                    }

                    if (key.equals("reportpolicy")) {
                        if(value.equals("1"))
                            setDefaultReportPolicy(context, 1);
                        else
                            setDefaultReportPolicy(context, 0);
                    }

                    if (key.equals("sessionmillis")) {
                        if(value.trim().matches("\\d+")){
                            CommonUtil.printLog("set session step", value);
                            UmsConstants.kContinueSessionMillis = Integer.parseInt(value) * 1000;
                        }
                    }
@cobub cobub added the bug label Oct 27, 2014
@cobub
Copy link
Owner

cobub commented Oct 27, 2014

Thanks. We'll check the code.

brucenan pushed a commit that referenced this issue Aug 24, 2015
brucenan pushed a commit that referenced this issue Aug 24, 2015
Summary:
modify file #123 #126 #122 #121 #115

modify file

Reviewers: nan.li

Reviewed By: nan.li

Differential Revision: http://pha.cobub.cn/D91
@cobub
Copy link
Owner

cobub commented Aug 28, 2015

It has been fixed.

@cobub cobub closed this as completed Aug 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants