sourabhkumar47 / ResQFood

ResQFood is a platform dedicated to the noble cause of reducing food wastage by facilitating the redistribution of surplus food during late-night hours before restaurant closures. Our mission is to ensure that excess inventory finds a purposeful destination rather than ending up in landfills, contributing to a more sustainable and compassionate foo
MIT License
20 stars 34 forks source link

Added Alert Dialog #77

Closed Swarnima2004 closed 3 months ago

Swarnima2004 commented 4 months ago

Pull Request Template

Description

This PR adds an alert dialog to prompt users for confirmation before performing a critical action. The alert dialog appears when users exits from the app.

feature : #66

Changes

Created a new Alert Dialog in the Main Activity. Set the title to “Exit” Added a message: “Want to stay more with RestQFood? ” Included positive button (“No”) to proceed with deletion. Included negative button (“Yes”) to cancel the action. Implemented the logic to handle user responses.

Testing Instructions

Tested the alert dialog on different devices and screen sizes. Verified that the dialog displays correctly and responds to user interactions.

Screenshots: !Alert Dialog Screenshot

alertDiolog

sourabhkumar47 commented 4 months ago

Conflicting files, please fix it

Swarnima2004 commented 4 months ago

While agp version to 8.4.0 it was not been build . So, I changed to version 8.1.2 but now it is showing conflicts with mainActivity.kt . I am not finding the way to resolve this conflicts. Can you please suggest the way to resolve the conflict ?

sourabhkumar47 commented 4 months ago

While agp version to 8.4.0 it was not been build . So, I changed to version 8.1.2 but now it is showing conflicts with mainActivity.kt . I am not finding the way to resolve this conflicts. Can you please suggest the way to resolve the conflict ?

sync your project and try again and don't modify versions

sourabhkumar47 commented 4 months ago

Conflicting files :

sourabhkumar47 commented 4 months ago

Conflict not resolved yet..

Conflicting files

github-actions[bot] commented 3 months ago

This PR has been automatically closed due to inactivity from the owner for 15 days.