diff --git a/app/src/main/java/com/neolit/simpledeviceinfo/MainActivity.java b/app/src/main/java/com/neolit/simpledeviceinfo/MainActivity.java index 466b6f9..69ca6e2 100644 --- a/app/src/main/java/com/neolit/simpledeviceinfo/MainActivity.java +++ b/app/src/main/java/com/neolit/simpledeviceinfo/MainActivity.java @@ -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);