diff --git a/app/src/main/java/com/example/nemophila/MapsDialogFragment.java b/app/src/main/java/com/example/nemophila/MapsDialogFragment.java index 676ea7e..2af99e7 100644 --- a/app/src/main/java/com/example/nemophila/MapsDialogFragment.java +++ b/app/src/main/java/com/example/nemophila/MapsDialogFragment.java @@ -31,7 +31,8 @@ int j = 0; for (Iterator i = shops.iterator(); i.hasNext(); j++) { - choices[j] = (String)i.next(); + Shop tmp = (Shop)i.next(); + choices[j] = tmp.getName(); } AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); @@ -39,6 +40,7 @@ .setPositiveButton("該当する店がありません(新規作成)", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { // このボタンを押した時の処理を書きます。 + //新規投稿画面へ遷移 } }) .setNeutralButton("キャンセル", new DialogInterface.OnClickListener() {