Skip to content

Commit

Permalink
Change text of delete dialog positive button
Browse files Browse the repository at this point in the history
Signed-off-by: starry69 <[email protected]>
  • Loading branch information
starry-shivam committed Jun 17, 2022
1 parent aac831e commit 5de3583
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ class HomeFragment : Fragment(), ClickListenerIF {
// set negative button.
alertDialog.setNegativeButton("Cancel") { _, _ ->
}
alertDialog.setPositiveButton("Done") { _, _ ->
alertDialog.setPositiveButton("Yes") { _, _ ->
viewModel.deleteItem(item)
CuteToast.ct(
requireContext(),
Expand Down
6 changes: 3 additions & 3 deletions app/src/main/res/layout/fragment_home.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,20 @@ SOFTWARE. -->
<ImageButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="200dp"
android:layout_gravity="center_horizontal|center_vertical"
android:layout_marginTop="200dp"
android:background="@android:color/transparent"
android:src="@drawable/ic_baseline_face_24" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal|center_vertical"
android:layout_marginStart="65dp"
android:layout_marginEnd="65dp"
android:layout_gravity="center_horizontal|center_vertical"
android:text="@string/no_goals_set"
android:textColor="?attr/iconPreferenceColor"
android:fontFamily="sans-serif-light"/>
android:textStyle="italic" />

</LinearLayout>

Expand Down

0 comments on commit 5de3583

Please sign in to comment.