Fix Android dev sample threading issue
@@ -65,9 +65,14 @@ public class SecondFragment extends Fragment {
@Override
public void onMapMoved() {
Log.d(TAG, "onMapMoved " + mapView.getFocusPos());
+ getActivity().runOnUiThread(new Runnable() {
+ @Override
+ public void run() {
textZoom.setText(String.format("z=%.2f", mapView.getZoom()));
}
});
+ }
+ });
modeButton.setOnClickListener(new View.OnClickListener() {
@Override
