Subversion Repository Public Repository

Nextrek

Diff Revisions 775 vs 776 for /Android/SmartCharging/SmartCharging/app/src/main/java/it/fedeloper/smartcharging/Controller/MapActivity.java

Diff revisions: vs.
  @@ -239,8 +239,14 @@
239 239 if(location==null)
240 240 return;
241 241
242 - loadingAll.setVisibility(View.VISIBLE);
243 - noLocalMsg.setText(R.string.ricerca_locali);
242 +
243 +
244 + runOnUiThread(new Runnable() {
245 + public void run() {
246 + loadingAll.setVisibility(View.VISIBLE);
247 + noLocalMsg.setText(R.string.ricerca_locali);
248 + }
249 + });
244 250 final LatLng latLng = new LatLng(location.getLatitude(), location.getLongitude());
245 251
246 252 lat = location.getLatitude();
  @@ -498,7 +504,7 @@
498 504
499 505 @Override
500 506 public void run() {
501 - showLocaleContainer();
507 + //showLocaleContainer();
502 508 }});
503 509
504 510 JSONObject jdata = arr.getJSONObject(i);
  @@ -579,6 +585,7 @@
579 585 new Thread(new Runnable() {
580 586 public void run() {
581 587
588 +
582 589 if (mapCacheInfo.containsKey(id)) {
583 590 runOnUiThread(new Runnable() {
584 591 @Override
  @@ -686,10 +693,15 @@
686 693 });
687 694 }else
688 695 {
696 +
689 697 runOnUiThread(new Runnable() {
690 698 @Override
691 699 public void run() {
700 + localeContainer.setVisibility(View.GONE);
701 + otherInfo.setVisibility(View.INVISIBLE);
692 702 loadingAll.setVisibility(View.VISIBLE);
703 + noLocalMsg.setText(R.string.caricamento_info);
704 + noLocalMsg.setVisibility(View.VISIBLE);
693 705 }
694 706 });
695 707