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

定位回调onLocate回调失败结果时候闪退 #84

Open
zhuhoudan opened this issue May 31, 2019 · 1 comment
Open

定位回调onLocate回调失败结果时候闪退 #84

zhuhoudan opened this issue May 31, 2019 · 1 comment

Comments

@zhuhoudan
Copy link

zhuhoudan commented May 31, 2019

CityPicker.from(TradeVipActivity.this) .locateComplete( null, LocateState.FAILURE);

在回调以上代码的时候,程序会闪退,建议在CityListAdapterupdateLocateState加入如下非空判断:

public void updateLocateState(LocatedCity location, int state) { if (location != null) { mData.remove(0); mData.add(0, location); } stateChanged = !(locateState == state); locateState = state; refreshLocationItem(); }

@xiaoyuncanghai
Copy link

+1 pls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants