Почему названия местоположений исчезли из Карт Google, когда язык на карте изменился на Язык локали? - PullRequest
0 голосов
/ 08 октября 2018

Я хочу установить язык Карт Google как Язык локали.Вот мой код

public class MapsActivity extends FragmentActivity implements 
OnMapReadyCallback {

private final static String TAG = MapsActivity.class.getSimpleName();
static final CameraPosition cp = new CameraPosition.Builder()
        .target(new LatLng(23.860407,90.264061))
        .bearing(0)
        .zoom(12)
        .build();
private GoogleMap mMap;
private SupportMapFragment mapFragment;


@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
String language= "bn_BD";
Locale locale = new Locale(language);
Locale.setDefault(locale);
Configuration configuration = new Configuration();
configuration.locale = locale; 
 this.getResources().updateConfiguration(configuration,this.getResources().getDisplayMetrics());
setContentView(R.layout.activity_maps);
// Obtain the SupportMapFragment and get notified when the map is 
 ready to be used.
 mapFragment = (SupportMapFragment) getSupportFragmentManager()
        .findFragmentById(R.id.map);
 mapFragment.getMapAsync(this);
}

@Override
public void onMapReady(GoogleMap googleMap) {
    mMap = googleMap;
    mMap.moveCamera(CameraUpdateFactory.newCameraPosition(cp));
}
}

Но когда я запускаю эту локацию, имя исчезает с карты.Вот вывод

enter image description here

...