Skip to content

Commit

Permalink
cry aarra hai ab
Browse files Browse the repository at this point in the history
  • Loading branch information
itsnitish22 committed Mar 21, 2023
1 parent 6bf530e commit 27ca0dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ class FarmerNewItem : Fragment() {
override fun onActivityCreated(savedInstanceState: Bundle?) {
super.onActivityCreated(savedInstanceState)
viewModel = ViewModelProvider(this).get(FarmerNewItemViewModel::class.java)
initClickListeners()
}

private fun initClickListeners() {
binding.picture.setOnFocusChangeListener { view, b ->
val intent = Intent().setType("*/*").setAction(Intent.ACTION_GET_CONTENT)
startActivityForResult(Intent.createChooser(intent, "Select a file"), 777)
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/fragment_farmer_new_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:inputType="textEmailAddress"
tools:text="IMG1232.png" />
tools:text="Aadhar card" />
</com.google.android.material.textfield.TextInputLayout>

</LinearLayout>
Expand Down

0 comments on commit 27ca0dd

Please sign in to comment.