From a3f5c390bd1c7eab55698eba7e17c2350de460b2 Mon Sep 17 00:00:00 2001 From: Iltwats <2012atulsharma@gmail.com> Date: Sat, 28 Nov 2020 16:07:54 +0530 Subject: [PATCH] setCancelable added to ProductAdderDialog --- .../com/atul/android/ecommerce/dialog/ProductAdderDialog.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/atul/android/ecommerce/dialog/ProductAdderDialog.java b/app/src/main/java/com/atul/android/ecommerce/dialog/ProductAdderDialog.java index 7a7b843..fb9394f 100644 --- a/app/src/main/java/com/atul/android/ecommerce/dialog/ProductAdderDialog.java +++ b/app/src/main/java/com/atul/android/ecommerce/dialog/ProductAdderDialog.java @@ -8,7 +8,6 @@ import android.widget.RadioGroup; import android.widget.Toast; - import com.atul.android.ecommerce.R; import com.atul.android.ecommerce.databinding.ProductAdderDialogBinding; import com.atul.android.ecommerce.model.Product; @@ -33,6 +32,7 @@ public void showDialog(Context context, OnProductAddListener listener) { ); new AlertDialog.Builder(context) + .setCancelable(false) .setTitle(productType == PRODUCT_ADD ? "Add Product" : "Edit Product") .setView(b.getRoot()) .setPositiveButton(productType == PRODUCT_ADD ? "ADD" : "EDIT", new DialogInterface.OnClickListener() {