Skip to content

Commit

Permalink
feat: Clean
Browse files Browse the repository at this point in the history
Signed-off-by: Sarthak Roy <sarthakroy2002@gmail.com>
  • Loading branch information
sarthakroy2002 committed Aug 8, 2024
1 parent 0575beb commit ff2cad3
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions app/src/main/java/com/neolit/simpledeviceinfo/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,6 @@ public boolean onOptionsItemSelected(MenuItem item) {
return super.onOptionsItemSelected(item);
}

@Override
public void onBackPressed() {
MaterialAlertDialogBuilder builder = new MaterialAlertDialogBuilder(MainActivity.this);
builder.setMessage("Do you want to exit the app?");
builder.setTitle("Warning!");
builder.setCancelable(false);
builder.setPositiveButton("Yes", (dialog, which) -> finish());
builder.setNegativeButton("No", (dialog, which) -> dialog.cancel());
builder.show();
}

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Expand Down

0 comments on commit ff2cad3

Please sign in to comment.