diff --git a/app/src/main/java/org/ntlab/amaryllis/client/fragment/MapsFragment.java b/app/src/main/java/org/ntlab/amaryllis/client/fragment/MapsFragment.java index 0e4c0d5..339c9be 100644 --- a/app/src/main/java/org/ntlab/amaryllis/client/fragment/MapsFragment.java +++ b/app/src/main/java/org/ntlab/amaryllis/client/fragment/MapsFragment.java @@ -2,6 +2,7 @@ import androidx.annotation.NonNull; import androidx.annotation.Nullable; +import androidx.fragment.app.DialogFragment; import androidx.fragment.app.Fragment; import android.app.Application; @@ -41,6 +42,7 @@ import org.ntlab.amaryllis.client.Amaryllis; import org.ntlab.amaryllis.client.MainActivity; +import org.ntlab.amaryllis.client.MyDialogFragment; import org.ntlab.amaryllis.client.R; import org.ntlab.amaryllis.client.VoiceActivity; import org.ntlab.amaryllis.client.entities.SignUpJson; @@ -62,7 +64,7 @@ import static android.content.Context.LOCATION_SERVICE; import static android.content.Context.MODE_PRIVATE; -public class MapsFragment extends Fragment implements LocationListener { +public class MapsFragment extends Fragment implements LocationListener,MyDialogFragment.DialogFragmentListener { private MediaRecorder mr; @@ -226,6 +228,15 @@ } + @Override + public void onDialogPositiveButtonClicked() { + + } + + @Override + public void onOkClicked(Bundle args) { + + } public class FragmentTest extends Fragment implements View.OnClickListener { @@ -265,6 +276,16 @@ mr.reset(); mr.release(); + + DialogFragment dialog = new MyDialogFragment(); + dialog.setTargetFragment(MapsFragment.this, 0); // ★★★ + dialog.show(getParentFragmentManager(), "Dialog"); + + + + + + in.read(byteData); String data = Base64.encodeToString(byteData, 0,byteData.length, Base64.DEFAULT); @@ -425,4 +446,7 @@ return timeLabel; } -} \ No newline at end of file +} + + +