-
-
Save skydoves/5dfce7d707439bb1b6cc85d58b076a3f to your computer and use it in GitHub Desktop.
dialog_fragment_example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class LocationServiceConfirmationDialogFragment : DialogFragment() { | |
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog = | |
AlertDialog.Builder(requireContext()) | |
.setMessage(getString(R.string.location_service_confirmation)) | |
.setPositiveButton(getString(R.string.agree)) { _, _ -> } | |
.setNegativeButton(getString(R.string.disagree)) { _, _ -> } | |
.create() | |
companion object { | |
const val TAG = "LocationServiceConfirmationDialogFragment" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment