v1.1
更换key,发布
This commit is contained in:
@@ -5,7 +5,7 @@ import android.util.Log;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
import com.amap.api.location.AMapLocation;
|
||||
import com.baidu.location.BDLocation;
|
||||
import com.google.gson.Gson;
|
||||
import com.google.gson.reflect.TypeToken;
|
||||
import com.qweather.sdk.bean.weather.WeatherDailyBean;
|
||||
@@ -58,10 +58,10 @@ public class WeatherPresenter implements WeatherContact.Presenter {
|
||||
|
||||
@Override
|
||||
public void getLocation() {
|
||||
AMapLocation aMapLocation = AmapManager.getInstance().getNowAMapLocation();
|
||||
BDLocation bdLocation = AmapManager.getInstance().getNowMapLocation();
|
||||
String location = "未知";
|
||||
if (aMapLocation != null) {
|
||||
location = aMapLocation.getCity() + "\t" + aMapLocation.getDistrict();
|
||||
if (bdLocation != null) {
|
||||
location = bdLocation.getCity() + "\t" + bdLocation.getDistrict();
|
||||
}
|
||||
mView.setLocation(location);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user