Skip to content

Commit

Permalink
ye bugs pitenge merse
Browse files Browse the repository at this point in the history
  • Loading branch information
itsnitish22 committed Mar 21, 2023
1 parent 282f486 commit 6bf530e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class FarmerNewItem : Fragment() {
override fun onActivityCreated(savedInstanceState: Bundle?) {
super.onActivityCreated(savedInstanceState)
viewModel = ViewModelProvider(this).get(FarmerNewItemViewModel::class.java)
binding.picture.setOnClickListener {
binding.picture.setOnFocusChangeListener { view, b ->
val intent = Intent().setType("*/*").setAction(Intent.ACTION_GET_CONTENT)
startActivityForResult(Intent.createChooser(intent, "Select a file"), 777)
}
Expand Down

0 comments on commit 6bf530e

Please sign in to comment.