This commit is contained in:
Denis 2015-01-15 15:49:07 +02:00
parent b39fce5cc1
commit 23c3dcd42d

View file

@ -101,10 +101,10 @@ public class AvoidSpecificRoads {
public void showDialog(final MapActivity mapActivity) {
Builder bld = new AlertDialog.Builder(mapActivity);
bld.setTitle(R.string.impassable_road);
final ArrayAdapter<?> listAdapter = createAdapter(mapActivity);
if (missingRoads.size() == 0){
bld.setMessage(R.string.avoid_roads_msg);
} else {
final ArrayAdapter<?> listAdapter = createAdapter(mapActivity);
bld.setAdapter(listAdapter, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {